Re: [PATCHSET block#for-2.6.36-post] block: replace barrier with sequenced flush

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Kiyoshi Ueda
Date: Friday, August 20, 2010 - 1:26 am

Hi Tejun, Christoph,

On Tue, Aug 17, 2010 at 06:41:47PM +0200, Tejun Heo wrote:

I think that's correct and changing the priority of DM_ENDIO_REQUEUE
for REQ_FLUSH down to the lowest should be fine.
(I didn't know that FLUSH failure implies data loss possibility.)

But the patch is not enough, you have to change target drivers, too.
E.g. As for multipath, you need to change
     drivers/md/dm-mpath.c:do_end_io() to return error for REQ_FLUSH
     like the REQ_DISCARD support included in 2.6.36-rc1.


By the way, if these patch-set with the change above are included,
even one path failure for REQ_FLUSH on multipath configuration will
be reported to upper layer as error, although it's retried using
other paths currently.
Then, if an upper layer won't take correct recovery action for the error,
it would be seen as a regression for users. (e.g. Frequent EXT3-error
resulting in read-only mount on multipath configuration.)

Although I think the explicit error is fine rather than implicit data
corruption, please check upper layers carefully so that users won't see
such errors as much as possible.

Thanks,
Kiyoshi Ueda
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 02/11] block: kill QUEUE_ORDERED_BY_TAG, Tejun Heo, (Thu Aug 12, 5:41 am)
[PATCH 05/11] block: misc cleanups in barrier code, Tejun Heo, (Thu Aug 12, 5:41 am)
Re: [PATCHSET block#for-2.6.36-post] block: replace barrie ..., Christoph Hellwig, (Fri Aug 13, 4:48 am)
Re: [PATCHSET block#for-2.6.36-post] block: replace barrie ..., Vladislav Bolkhovitin, (Fri Aug 13, 5:55 am)
Re: [PATCH 02/11] block: kill QUEUE_ORDERED_BY_TAG, Vladislav Bolkhovitin, (Fri Aug 13, 5:56 am)
Re: [PATCH 02/11] block: kill QUEUE_ORDERED_BY_TAG, Christoph Hellwig, (Fri Aug 13, 6:06 am)
Re: [PATCHSET block#for-2.6.36-post] block: replace barrie ..., Christoph Hellwig, (Fri Aug 13, 6:17 am)
Re: [PATCHSET block#for-2.6.36-post] block: replace barrie ..., Christoph Hellwig, (Fri Aug 13, 7:38 am)
Re: [PATCHSET block#for-2.6.36-post] block: replace barrie ..., Christoph Hellwig, (Sat Aug 14, 3:36 am)
Re: [PATCHSET block#for-2.6.36-post] block: replace barrie ..., Christoph Hellwig, (Tue Aug 17, 6:19 am)
Re: [PATCH 08/11] block: rename barrier/ordered to flush, Christoph Hellwig, (Tue Aug 17, 6:26 am)
Re: [PATCHSET block#for-2.6.36-post] block: replace barrie ..., Christoph Hellwig, (Tue Aug 17, 9:59 am)
Re: [PATCH 08/11] block: rename barrier/ordered to flush, Christoph Hellwig, (Tue Aug 17, 10:08 am)
Re: [PATCHSET block#for-2.6.36-post] block: replace barrie ..., Christoph Hellwig, (Wed Aug 18, 2:46 am)
Re: [PATCHSET block#for-2.6.36-post] block: replace barrie ..., Vladislav Bolkhovitin, (Wed Aug 18, 12:29 pm)
Re: [PATCHSET block#for-2.6.36-post] block: replace barrie ..., Vladislav Bolkhovitin, (Wed Aug 18, 12:30 pm)
Re: [PATCHSET block#for-2.6.36-post] block: replace barrie ..., Christoph Hellwig, (Thu Aug 19, 3:20 am)
Re: [PATCHSET block#for-2.6.36-post] block: replace barrie ..., Kiyoshi Ueda, (Fri Aug 20, 1:26 am)
Re: [PATCHSET block#for-2.6.36-post] block: replace barrie ..., Christoph Hellwig, (Fri Aug 20, 6:22 am)
Re: [PATCHSET block#for-2.6.36-post] block: replace barrie ..., Christoph Hellwig, (Mon Aug 23, 5:48 am)
Re: [PATCHSET block#for-2.6.36-post] block: replace barrie ..., Christoph Hellwig, (Mon Aug 23, 7:05 am)
Re: [PATCHSET block#for-2.6.36-post] block: replace barrie ..., Christoph Hellwig, (Mon Aug 23, 7:08 am)
[PATCH] block: simplify queue_next_fseq, Christoph Hellwig, (Mon Aug 23, 7:15 am)
Re: [PATCHSET block#for-2.6.36-post] block: replace barrie ..., Christoph Hellwig, (Mon Aug 23, 7:19 am)
Re: [PATCHSET block#for-2.6.36-post] block: replace barrie ..., Vladislav Bolkhovitin, (Tue Aug 24, 10:11 am)
Re: [PATCHSET block#for-2.6.36-post] block: replace barrie ..., Vladislav Bolkhovitin, (Mon Aug 30, 1:34 pm)