]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
blk/kerneldevice: notify_all only required when discard_drain wait for condition
authorYite Gu <yitegu0@gmail.com>
Fri, 30 Aug 2024 11:31:36 +0000 (19:31 +0800)
committerYite Gu <yitegu0@gmail.com>
Wed, 9 Apr 2025 08:13:47 +0000 (16:13 +0800)
commitce3906e16b8cca87c4f445a0fd451d55bb4e3b6a
treefdf95093bccb4905af4ee02ddb04f335104111e3
parent8160a35296c2dbcce9c28558a2f3e1475daaeddc
blk/kerneldevice: notify_all only required when discard_drain wait for condition

This will cause discard threads to wake up each other
if bdev_async_discard_threads >= 2.

Fixes: https://tracker.ceph.com/issues/67835
Signed-off-by: Yite Gu <yitegu0@gmail.com>
(cherry picked from commit cec2e4550fe520fa60445678934c04ba605913be)
src/blk/kernel/KernelDevice.cc
src/blk/kernel/KernelDevice.h