aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/handler.c
diff options
context:
space:
mode:
authorYing Xue <[email protected]>2014-03-06 13:40:18 +0000
committerDavid S. Miller <[email protected]>2014-03-06 19:46:23 +0000
commitfe8e4649397915cf3b2ab0b695929a27e543967e (patch)
tree383c648ffdef61232e623f723f17247dcb860faf /net/tipc/handler.c
parenttipc: fix connection refcount leak (diff)
downloadkernel-fe8e4649397915cf3b2ab0b695929a27e543967e.tar.gz
kernel-fe8e4649397915cf3b2ab0b695929a27e543967e.zip
tipc: avoid to unnecessary process switch under non-block mode
When messages are received via tipc socket under non-block mode, schedule_timeout() is called in tipc_wait_for_rcvmsg(), that is, the process of receiving messages will be scheduled once although timeout value passed to schedule_timeout() is 0. The same issue exists in accept()/wait_for_accept(). To avoid this unnecessary process switch, we only call schedule_timeout() if the timeout value is non-zero. Signed-off-by: Ying Xue <[email protected]> Reviewed-by: Erik Hugne <[email protected]> Reviewed-by: Jon Maloy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/handler.c')
0 files changed, 0 insertions, 0 deletions