diff options
author | 2016-02-02 10:52:16 +0100 | |
---|---|---|
committer | 2016-02-06 03:41:58 -0500 | |
commit | ae245557f87fffe2e1c39ba07524024e650e822b (patch) | |
tree | 73a16eb24a35386f5b86e02a1381eb73777c01af /net/tipc/net.c | |
parent | tipc: protect tipc_subscrb_get() with subscriber spin lock (diff) | |
download | linux-dev-ae245557f87fffe2e1c39ba07524024e650e822b.tar.xz linux-dev-ae245557f87fffe2e1c39ba07524024e650e822b.zip |
tipc: donot create timers if subscription timeout = TIPC_WAIT_FOREVER
Until now, we create timers even for the subscription requests
with timeout = TIPC_WAIT_FOREVER.
This can be improved by avoiding timer creation when the timeout
is set to TIPC_WAIT_FOREVER.
In this commit, we introduce a check to creates timers only
when timeout != TIPC_WAIT_FOREVER.
Acked-by: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: Parthasarathy Bhuvaragan <parthasarathy.bhuvaragan@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/net.c')
0 files changed, 0 insertions, 0 deletions