]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
md/raid10: don't modify 'nr_waitng' in wait_barrier() for the case nowait
authorYu Kuai <yukuai3@huawei.com>
Fri, 16 Sep 2022 11:34:25 +0000 (19:34 +0800)
committerSong Liu <song@kernel.org>
Thu, 22 Sep 2022 07:05:05 +0000 (00:05 -0700)
commit0de57e541bb4207c0602eca271c6531c305e9c5d
tree7e1e67218e687723d2b6d19836ee0b00152dcc7c
parented2e063f92c44c891ccd883e289dde6ca870edcc
md/raid10: don't modify 'nr_waitng' in wait_barrier() for the case nowait

For the case nowait in wait_barrier(), there is no point to increase
nr_waiting and then decrease it.

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
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