Re: [PATCH] md: Call blk_queue_flush() to establish flush/fua support

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Darrick J. Wong
Date: Monday, November 22, 2010 - 6:28 pm

On Tue, Nov 23, 2010 at 10:50:00AM +1100, Neil Brown wrote:

I don't think there's anything that would get confused by an md that advertises
flush/fua support when any of the underlying devices don't support it, but that
was the only reason why I didn't just code it up your way to start with. :)

None of the in-kernel code checks queue->flush_flags except the block layer
itself, and the block layer silently strips off REQ_FLUSH/REQ_FUA if the device
doesn't support it.  I'm not sure I like /that/ behavior, but at the moment I
have no objection.  dm hardcodes the flags on as well.

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

Messages in current thread:
Re: [PATCH] md: Call blk_queue_flush() to establish flush/ ..., Darrick J. Wong, (Mon Nov 22, 6:28 pm)