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: Timothy Shimmin
Date: Sunday, May 27, 2007 - 9:48 pm

Hi,

--On 28 May 2007 12:45:59 PM +1000 David Chinner <dgc@sgi.com> wrote:

I would assume so.
Then when the block layer finds that they aren't supported and does
non-barrier ones, then it could report a message.
We, xfs, I guess can't take much other course of action
and we aint doing much now other than not requesting them
anymore and printing an error message.

Yep, and that one is what we want the FUA for -
for the write into the log.

I'm taking it that the FUA write will just guarantee that that
particular write has made it to disk on i/o completion
(and no write cache flush is done).

The other XFS constraint is that we know when the metadata hits the disk
so that we can move the tail of the log.
And that is what we are effectively getting from the pre-write-flush
part of the barrier. It would ensure that any metadata not yet to disk would
be on disk before we overwrite the tail of the log.
If we could determine cases when we don't have to worry about overwriting
the tail of the log, then it would be good if we could
just do FUA writes for contraint 1 above. Is that possible?

--Tim


-
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 ..., Timothy Shimmin, (Sun May 27, 9:48 pm)
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)