Page MenuHomeFreeBSD

da(4): Short-circuit unnecessary BIO_FLUSH commands
ClosedPublic

Authored by asomers on Nov 15 2017, 4:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 29, 1:18 AM
Unknown Object (File)
Sep 17 2024, 9:54 AM
Unknown Object (File)
Sep 8 2024, 5:22 PM
Unknown Object (File)
Sep 7 2024, 9:44 AM
Unknown Object (File)
Sep 4 2024, 7:01 PM
Unknown Object (File)
Sep 4 2024, 6:25 PM
Unknown Object (File)
Sep 1 2024, 10:40 AM
Unknown Object (File)
Aug 26 2024, 9:03 AM
Subscribers

Details

Summary

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 since the last flush. If we haven't written to the
device, there is no reason to send a flush.

Submitted by: gibbs

Test Plan

ZFS test suite

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Same thing for the ata version?

Otherwise seems sane.

In D13106#272468, @imp wrote:

Same thing for the ata version?

Otherwise seems sane.

adastart is not totally symmetric with dastart. My naive attempt to port the change is causing deadlocks. Unless somebody else wants to try, I'm inclined to commit it just for da.

As far as I can tell, this rev is fine. I get the ada issues and while I would like to see the same sort of thing done there, I accept that it's harder.

This revision is now accepted and ready to land.Nov 20 2017, 10:21 PM
This revision was automatically updated to reflect the committed changes.