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)
Jan 28 2024, 4:50 AM
Unknown Object (File)
Dec 20 2023, 4:24 AM
Unknown Object (File)
Dec 5 2023, 2:47 PM
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.