Re: [PATCH 09/19 v2] bcache: update bio->bi_opf bypass/writeback REQ_ flag hints
From: Coly Li <hidden>
Date: 2017-07-12 09:18:21
Also in:
linux-block
From: Coly Li <hidden>
Date: 2017-07-12 09:18:21
Also in:
linux-block
On 2017/7/11 上午11:48, Coly Li wrote:
On 2017/7/6 下午11:24, Christoph Hellwig wrote:quoted
On Thu, Jul 06, 2017 at 03:35:48PM +0800, Coly Li wrote:quoted
Then gfs2 breaks the above rule ? in gfs2_metapath_ra() and gfs2_dir_readahead(), only REQ_META is used in submit_bh(). It seems an extra REQ_PRIO should be there.Or maybe not. E.g. XFS absolutely avoids using REQ_PRIO for any of the buffer writeback as it does not have priority. You'll need to ask gfs2 folks if they want this I/O to have priority or not.I see. Just sent a RFC patch to gfs2 development list, and wait for response. Thanks for the hint.
Hi Eric, By comments from Christoph, I think the original version is correct enough. gfs2 is the only file system uses REQ_READAHEAD for metadata readahead, if gfs2 developers agree to add REQ_PRIO when issue metadata bio, we can use another patch to cache its metadata in bcache. Currently we can just let this patch go ahead. Thanks for your patient explaining to my question, and thanks to Christoph to correct the concept of REQ_META and REQ_PRIO. Please add Reviewed-by: Coly Li [off-list ref] to your original version patch. Coly Li