Does UFS2 send BIO_FLUSH to GEOM when update metadata (with softupdates)?

Lev Serebryakov lev at FreeBSD.org
Thu Nov 24 19:26:48 UTC 2011


Hello, Ivan.
You wrote 24 ноября 2011 г., 20:42:15:

> Some time ago I've written a patch as an learning excercise which issues
> a BIO_FLUSH when it thinks SU needs it - it may or may not be correct so
> I didn't even try to commit it:
> http://people.freebsd.org/~ivoras/diffs/fsync_flush.patch
> Of course, reviews are welcome :)
 I'll give it a try. But adding BIO_SYNC flag will be better to avoid
additional operations. I'm trying to measuer it impact now for very
naive implementation (add BIO_SYNC flag to system, teach ata/scsi
layer about it and set it for every BIO which is created from BUF
without "ASYNC" flag).

-- 
// Black Lion AKA Lev Serebryakov <lev at FreeBSD.org>



More information about the freebsd-fs mailing list