aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/git:/ssh:/git@git.zx2c4.com
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2022-09-16 19:34:26 +0800
committerSong Liu <song@kernel.org>2022-09-22 00:05:05 -0700
commit0c0be98bbe67662a7d2bf8381106bfca0e31ed72 (patch)
tree3f345788a58afbb9ab684b17edddb6e47b899fbc /include/linux/mfd/git:/ssh:/git@git.zx2c4.com
parentmd/raid10: don't modify 'nr_waitng' in wait_barrier() for the case nowait (diff)
downloadlinux-dev-0c0be98bbe67662a7d2bf8381106bfca0e31ed72.tar.xz
linux-dev-0c0be98bbe67662a7d2bf8381106bfca0e31ed72.zip
md/raid10: prevent unnecessary calls to wake_up() in fast path
Currently, wake_up() is called unconditionally in fast path such as raid10_make_request(), which will cause lock contention under high concurrency: raid10_make_request wake_up __wake_up_common_lock spin_lock_irqsave Improve performance by only call wake_up() if waitqueue is not empty in allow_barrier() and raid10_make_request(). 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>
Diffstat (limited to 'include/linux/mfd/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions