[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d8f1465b-df4e-a94b-f075-b5b46c95000a@deltatee.com>
Date: Fri, 16 Sep 2022 12:37:57 -0600
From: Logan Gunthorpe <logang@...tatee.com>
To: Yu Kuai <yukuai1@...weicloud.com>, song@...nel.org,
guoqing.jiang@...ux.dev, pmenzel@...gen.mpg.de
Cc: linux-raid@...r.kernel.org, linux-kernel@...r.kernel.org,
yukuai3@...wei.com, yi.zhang@...wei.com
Subject: Re: [PATCH v3 5/5] md/raid10: convert resync_lock to use seqlock
On 2022-09-16 05:34, Yu Kuai wrote:
> From: Yu Kuai <yukuai3@...wei.com>
>
> Currently, wait_barrier() will hold 'resync_lock' to read 'conf->barrier',
> and io can't be dispatched until 'barrier' is dropped.
>
> Since holding the 'barrier' is not common, convert 'resync_lock' to use
> seqlock so that holding lock can be avoided in fast path.
>
> Signed-off-by: Yu Kuai <yukuai3@...wei.com>
Reviewed-and-Tested-by: Logan Gunthorpe <logang@...tatee.com>
So far, I've run this series 3 times through the mdadm test suite and
haven't detected any issues.
Thanks,
Logan
Powered by blists - more mailing lists