Thread (19 messages) 19 messages, 4 authors, 2022-09-19

Re: [PATCH v3 5/5] md/raid10: convert resync_lock to use seqlock

From: Logan Gunthorpe <logang@deltatee.com>
Date: 2022-09-16 18:38:14
Also in: lkml


On 2022-09-16 05:34, Yu Kuai wrote:
From: Yu Kuai <redacted>

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 <redacted>
Reviewed-and-Tested-by: Logan Gunthorpe [off-list ref]

So far, I've run this series 3 times through the mdadm test suite and
haven't detected any issues.

Thanks,

Logan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help