]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
da(4): Short-circuit unnecessary BIO_FLUSH commands
authorAlan Somers <asomers@FreeBSD.org>
Mon, 20 Nov 2017 22:27:33 +0000 (22:27 +0000)
committerAlan Somers <asomers@FreeBSD.org>
Mon, 20 Nov 2017 22:27:33 +0000 (22:27 +0000)
commitc95dc95b35762720e0f9ef506416a8551b58a9fe
treed2d02c3699a8169fc92d67c70149f0cbaccefd8f
parent114aedb30e9a64771be7e88ec1a4a8f9c853621f
da(4): Short-circuit unnecessary BIO_FLUSH commands

sys/cam/scsi/scsi_da.c
Complete BIO_FLUSH commands immediately if the da(4) device hasn't
been written to since the last flush. If we haven't written to the
device, there is no reason to send a flush.

Submitted by: gibbs
Reviewed by: imp
MFC after: 3 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D13106
sys/cam/scsi/scsi_da.c