]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: lustre: make polling loop in ptlrpc_unregister_bulk more obvious
authorNeilBrown <neilb@suse.com>
Mon, 12 Feb 2018 23:47:59 +0000 (10:47 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 14:19:11 +0000 (15:19 +0100)
commit1307a0fdf9f8d56c7b1a5a5f7de8e0a2ec193e10
tree7e39279e4d18907df3ef4427d2021d5fa61a2cc7
parentcac6e45735cbe3ce7cbea64d360699d7adab7573
staging: lustre: make polling loop in ptlrpc_unregister_bulk more obvious

This use of l_wait_event() is a polling loop that re-checks
every second.  Make this more obvious with a while loop
and wait_event_idle_timeout().

Reviewed-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: NeilBrown <neilb@suse.com>
Reviewed-by: Patrick Farrell <paf@cray.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ptlrpc/niobuf.c