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>