Re: [RFD] BIO_RW_BARRIER - what it means for devices, filesystems, and dm/md.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tejun Heo
Date: Monday, May 28, 2007 - 2:29 am

Hello,

Neil Brown wrote:

Yeah, I think doing all the above in the block layer is the cleanest way
to solve this.  If write back cache && flush doesn't work, barrier is
bound to fail but block layer still can write the barrier block as
requested (without actual barriering), whine about it to the user, and
tell the FS that barrier is failed but the write itself went through, so
that FS can go on without caring about it unless it wants to.


Yeap.


I think we can give this property to zero length barriers.


Barrier code as it currently stands deals with two colors so there can
be only one outstanding barrier at given moment.  Expanding it to deal
with multiple colors and then to multiple simultaneous groups will take
some work but is definitely possible.  If FS people can make good use of
it, I think it would be worthwhile.


Yeah, on device side, the best we can do most of the time is full flush
but as long as request queue depth is much deeper than the
controller/device one, having multiple barrier groups can be helpful.
We need more input from FS people, I think.


If the NV RAM can be reliably detected using one of the inquiry pages,
sd driver can switch it to DRAIN automatically.


How about exporting ordered mode as sysfs attribute and configuring it
using a udev rule?  It's a device property after all.

Thanks.

-- 
tejun
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFD] BIO_RW_BARRIER - what it means for devices, file ..., Tejun Heo, (Mon May 28, 2:29 am)
Re: [dm-devel] Re: [RFD] BIO_RW_BARRIER - what it means fo ..., Alasdair G Kergon, (Mon May 28, 2:43 am)
Re: [dm-devel] Re: [RFD] BIO_RW_BARRIER - what it means fo ..., Alasdair G Kergon, (Tue May 29, 3:05 pm)
Re: [dm-devel] Re: [RFD] BIO_RW_BARRIER - what it means fo ..., Alasdair G Kergon, (Wed May 30, 3:41 am)
Re: [dm-devel] Re: [RFD] BIO_RW_BARRIER - what it means fo ..., Valdis.Kletnieks, (Thu Jul 12, 10:34 am)
[PATCH] block: cosmetic changes, Tejun Heo, (Wed Jul 18, 3:56 am)
[PATCH] block: factor out bio_check_eod(), Tejun Heo, (Wed Jul 18, 3:59 am)
Re: [PATCH] block: factor out bio_check_eod(), Jens Axboe, (Wed Jul 18, 4:06 am)
Re: [PATCH] block: factor out bio_check_eod(), Tejun Heo, (Wed Jul 18, 4:18 am)
Re: [PATCH] block: factor out bio_check_eod(), Jens Axboe, (Wed Jul 18, 4:31 am)
Re: [PATCH] block: factor out bio_check_eod(), Tejun Heo, (Wed Jul 18, 4:33 am)
Re: [PATCH] block: factor out bio_check_eod(), Jens Axboe, (Wed Jul 18, 4:34 am)
Re: [PATCH] block: factor out bio_check_eod(), Tejun Heo, (Wed Jul 18, 4:41 am)
Re: [PATCH] block: factor out bio_check_eod(), Jens Axboe, (Wed Jul 18, 4:45 am)
Re: [PATCH] block: factor out bio_check_eod(), Jens Axboe, (Wed Jul 18, 4:49 am)
Re: [PATCH] block: factor out bio_check_eod(), Jens Axboe, (Wed Jul 18, 5:31 am)
Re: [PATCH] block: factor out bio_check_eod(), Tejun Heo, (Wed Jul 18, 5:34 am)