Whamcloud - gitweb
LU-15808 ptlrpc: ptlrpc_set_wait() use wait_woken 08/59108/2
authorShaun Tancheff <shaun.tancheff@hpe.com>
Fri, 13 Sep 2024 02:31:08 +0000 (09:31 +0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 15 May 2025 07:32:17 +0000 (07:32 +0000)
commit4fd6de9b01beef0ca9ea7aa3a9e042479c6cb4b4
tree1173215336bafc9740e222a645234adc9f90cccc
parent0f4061d0dc39477cfcd95acd13f5d62562424b31
LU-15808 ptlrpc: ptlrpc_set_wait() use wait_woken

ptlrpc_set_wait() using a potentially long running condition
ptlrpc_check_set() that can also block.

If it does block during ptl_send_rpc() it could potentially
trigger a warning:
   do not call blocking ops when !TASK_RUNNING

NeilBrown <neilb@suse.de> suggested to use wait_woken() instead.

Convert ptlrpc_set_wait to use wait_woken()
similar to the wait_woken() method used in ptlrpcd.

Lustre-change: https://review.whamcloud.com/56317
Lustre-commit: 930ad25733d925021fbce468568acacde219d67c

Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I544550db58fa2e89ce18a8a43a64fdea7ed57206
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Petros Koutoupis <petros.koutoupis@hpe.com>
Reviewed-by: Alexander Zarochentsev <alexander.zarochentsev@hpe.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59108
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Zhenyu Xu <bobijam@hotmail.com>
libcfs/include/libcfs/linux/linux-wait.h
lustre/ptlrpc/client.c