Skip to content
Commit b9b083f9 authored by Yu Kuai's avatar Yu Kuai Committed by Song Liu
Browse files

md/raid10: convert resync_lock to use seqlock



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: default avatarYu Kuai <yukuai3@huawei.com>
Reviewed-and-Tested-by: default avatarLogan Gunthorpe <logang@deltatee.com>
Signed-off-by: default avatarSong Liu <song@kernel.org>
parent 4f350284
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment