Whamcloud - gitweb
LU-10467 ptlrpc: convert use of l_wait_event_exclusive_head() 86/35986/11
authorMr NeilBrown <neilb@suse.com>
Sat, 18 Jan 2020 14:46:59 +0000 (09:46 -0500)
committerOleg Drokin <green@whamcloud.com>
Sat, 8 Feb 2020 04:00:12 +0000 (04:00 +0000)
commitfb291dbf72ecd32847f1499776a441126f28e9bf
tree8893c6d2f249b78eaedfd7126469c640b569fb1a
parent366959b8cba5b022b4c1ea9aaba47ac14d4fff7e
LU-10467 ptlrpc: convert use of l_wait_event_exclusive_head()

Only one place uses l_wait_event_exclusive_head().
It uses an on_timeout function that returns non-zero, so
the wait aborts after timeout.

Change this to wait_event_idle_exclusive_lifo_timeout(),
and if it times out, perform the same action as the
on_timeout handler - a simple assignment.

Signed-off-by: Mr NeilBrown <neilb@suse.com>
Change-Id: I11bee6aa1eceb6564fb72e41528f2f6a80b0d207
Reviewed-on: https://review.whamcloud.com/35986
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Petros Koutoupis <pkoutoupis@cray.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ptlrpc/service.c