diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2023-08-01 19:14:24 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2023-08-02 09:07:34 +0200 |
commit | e6e2843230799230fc5deb8279728a7218b0d63c (patch) | |
tree | a21e61af7751b68383c56bdcaa5f689579b5df47 /net/Makefile | |
parent | rbd: prevent busy loop when requesting exclusive lock (diff) | |
download | linux-e6e2843230799230fc5deb8279728a7218b0d63c.tar.xz linux-e6e2843230799230fc5deb8279728a7218b0d63c.zip |
libceph: fix potential hang in ceph_osdc_notify()
If the cluster becomes unavailable, ceph_osdc_notify() may hang even
with osd_request_timeout option set because linger_notify_finish_wait()
waits for MWatchNotify NOTIFY_COMPLETE message with no associated OSD
request in flight -- it's completely asynchronous.
Introduce an additional timeout, derived from the specified notify
timeout. While at it, switch both waits to killable which is more
correct.
Cc: stable@vger.kernel.org
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Diffstat (limited to 'net/Makefile')
0 files changed, 0 insertions, 0 deletions