Whamcloud - gitweb
LU-10467 lustre: use l_wait_event_abortable where appropriate. 75/35975/8
authorMr NeilBrown <neilb@suse.com>
Mon, 26 Aug 2019 05:59:07 +0000 (15:59 +1000)
committerOleg Drokin <green@whamcloud.com>
Thu, 20 Feb 2020 07:13:03 +0000 (07:13 +0000)
commit79d51f6c1d9f04aac3e7cbbedadf43a72520d424
treee65a5a456ccd47e4b5c7a21374e9b1fbbe04674a
parent2c5700fcb4cb15056dc901fedf97001d9b9fd845
LU-10467 lustre: use l_wait_event_abortable where appropriate.

If the lwi passed to l_wait_event() was created with

    lwi = LWI_INTR(LWI_ON_SIGNAL_NOOP, NULL);

the effect is to wait with no timeout and blocking any
non-fatal signals.
For this, we now have l_wait_event_abortable(), or for one
case l_wait_event_abortable_exclusive();
So use those.

l_wait_event_abortable() will return -ERESTARTSYS if a signal was
received, while l_wait_event() returens -EINTR.  We need to be
careful to handle this difference.

Signed-off-by: Mr NeilBrown <neilb@suse.com>
Change-Id: Iadf0fab92fcfd46802766198dcbe6b6b349214fa
Reviewed-on: https://review.whamcloud.com/35975
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Petros Koutoupis <petros.koutoupis@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/llite/llite_lib.c
lustre/obdclass/genops.c
lustre/obdclass/llog_obd.c
lustre/osc/osc_page.c
lustre/osc/osc_request.c
lustre/ptlrpc/import.c