Whamcloud - gitweb
LU-9019 lnet: simplify lnet_eq_wait_locked 47/23147/9
authorJames Simmons <uja.ornl@yahoo.com>
Fri, 13 Jan 2017 22:54:34 +0000 (17:54 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 24 Jan 2017 05:20:40 +0000 (05:20 +0000)
commit19b33c5ed4a5c8296b0a2ba576de874e83faa8fd
tree992f335ff1ef34f3b1a3f1339fc9d282b09b8897
parent40ae5dd2f2d0c6abe8e2f83ab9652873bee92485
LU-9019 lnet: simplify lnet_eq_wait_locked

We can simplify the code by taking advantage of the behavior
of schedule_timeout_interruptible(). Instead of testing if
tms is less than zero we can pass in a signed long that
schedule_timeout_interruptible is expecting and for the case
of no timeout we can pass in MAX_SCHEDULE_TIMEOUT.

Change-Id: I15126aab500e975ec34ee270d3a1f9b83cf50902
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/23147
Reviewed-by: Doug Oucharek <doug.s.oucharek@intel.com>
Tested-by: Jenkins
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lnet/include/lnet/api.h
lnet/include/lnet/types.h
lnet/lnet/api-ni.c
lnet/lnet/lib-eq.c
lnet/utils/portals.c
lustre/doc/lctl.8