md/raid10: factor out code from wait_barrier() to stop_waiting_barrier()
authorYu Kuai <yukuai3@huawei.com>
Fri, 16 Sep 2022 11:34:24 +0000 (19:34 +0800)
committerSong Liu <song@kernel.org>
Thu, 22 Sep 2022 07:05:05 +0000 (00:05 -0700)
commited2e063f92c44c891ccd883e289dde6ca870edcc
tree935bed7581a144ac366d2614e3bc2c87ca734cdf
parent3bfc3bcd787c48aa31e4fde4a6dfcef4cd7ee2c2
md/raid10: factor out code from wait_barrier() to stop_waiting_barrier()

Currently the nasty condition in wait_barrier() is hard to read. This
patch factors out the condition into a function.

There are no functional changes.

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Acked-by: Paul Menzel <pmenzel@molgen.mpg.de>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Acked-by: Guoqing Jiang <guoqing.jiang@linux.dev>
Signed-off-by: Song Liu <song@kernel.org>
drivers/md/raid10.c