Files
linux/net
Ilya Dryomov be52667ba2 libceph: fix potential hang in ceph_osdc_notify()
commit e6e2843230 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-11 12:08:19 +02:00
..
2023-06-09 10:34:16 +02:00
2022-02-25 09:36:06 +01:00
2023-07-27 08:50:27 +02:00
2023-03-22 13:33:50 +01:00
2023-05-17 11:53:35 +02:00
2022-08-22 14:26:30 +01:00
2022-08-22 14:26:30 +01:00