Whamcloud - gitweb
LU-15808 ptlrpc: ptlrpc_set_wait() use wait_woken 17/56317/9
authorShaun Tancheff <shaun.tancheff@hpe.com>
Fri, 13 Sep 2024 02:31:08 +0000 (09:31 +0700)
committerOleg Drokin <green@whamcloud.com>
Mon, 2 Dec 2024 05:49:45 +0000 (05:49 +0000)
commit930ad25733d925021fbce468568acacde219d67c
treeda8f7ad144983d5ee3664a8a1229a45332b2d5d7
parent3483556684a435e71aa69f5d8575ce5e9b437bb7
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.

Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I544550db58fa2e89ce18a8a43a64fdea7ed57206
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56317
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
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>
libcfs/include/libcfs/linux/linux-wait.h
lustre/ptlrpc/client.c