Whamcloud - gitweb
LU-9660 ptlrpc: do not wakeup every second 76/28776/7
authorAlex Zhuravlev <alexey.zhuravlev@intel.com>
Tue, 29 Aug 2017 12:08:42 +0000 (15:08 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 16 Oct 2017 03:22:53 +0000 (03:22 +0000)
commite81847bd06519dd9847c31244abe6da978bcd016
tree547ed527f38eeb507872b8864f154cc2f0662ba5
parentd94de5c04ee231f1820ae11ead86f0efc3c1fd02
LU-9660 ptlrpc: do not wakeup every second

Even if there are no RPC requests on the set, there is no need to
wake up every second. The thread is woken up when a request is added
to the set or when the STOP bit is set, so it is sufficient to only
wake up when there are requests on the set to worry about.

Change-Id: Iac01d8c46e8645ecb6303ce72e0f6c59f16dcd5d
Signed-off-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-on: https://review.whamcloud.com/28776
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Patrick Farrell <paf@cray.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ptlrpc/ptlrpcd.c