Whamcloud - gitweb
LU-10467 osp: use wait_event_idle_timeout() 88/35988/10
authorMr NeilBrown <neilb@suse.de>
Wed, 28 Aug 2019 23:28:20 +0000 (09:28 +1000)
committerOleg Drokin <green@whamcloud.com>
Fri, 10 Jan 2020 07:40:40 +0000 (07:40 +0000)
commit216e1efa8f12e113dbbb8f0ae2b00efe58cccac4
tree17baede028fde8cac07337fe7f3cb98efbd28fbe
parentc1fad6a9a583b395c23ea1a102f1b67c50640f6f
LU-10467 osp: use wait_event_idle_timeout()

osp has 4 LWI_TIMEOUT() calls that pass an on_timeout
function.
In each case, the on_timeout function returns 1, so this
is equivalent to using wait_event_idle_timeout(), and
calling the function if the timeout happened.

One of the two functions passed does nothing except return 1, so it
can be ignored.
The other function, used only once, contains a CDEBUG message,
so we now call that when wait_event_idle_timeout() returns 0.

Change-Id: Ic153266e412d684c4aa6c7204ff5755d991d83c6
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Reviewed-on: https://review.whamcloud.com/35988
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 <stancheff@cray.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osp/osp_dev.c
lustre/osp/osp_precreate.c