linux-bl808/net/tipc
Ying Xue fe8e464939 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 <ying.xue@windriver.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-03-06 14:46:23 -05:00
..
addr.c
addr.h
bcast.c
bcast.h
bearer.c tipc: make bearer set up in module insertion stage 2014-02-22 00:00:15 -05:00
bearer.h
config.c tipc: allow connection shutdown callback to be invoked in advance 2014-03-06 14:46:23 -05:00
config.h
core.c tipc: make bearer set up in module insertion stage 2014-02-22 00:00:15 -05:00
core.h tipc: make bearer set up in module insertion stage 2014-02-22 00:00:15 -05:00
discover.c
discover.h
eth_media.c
handler.c
ib_media.c
Kconfig
link.c tipc: fix message corruption bug for deferred packets 2014-02-13 16:35:05 -05:00
link.h
log.c
Makefile
msg.c
msg.h
name_distr.c
name_distr.h
name_table.c tipc: remove all enabled flags from all tipc components 2014-02-22 00:00:15 -05:00
name_table.h
net.c
net.h
netlink.c tipc: remove all enabled flags from all tipc components 2014-02-22 00:00:15 -05:00
node.c
node.h
node_subscr.c
node_subscr.h
port.c
port.h
ref.c tipc: remove all enabled flags from all tipc components 2014-02-22 00:00:15 -05:00
ref.h
server.c tipc: fix connection refcount leak 2014-03-06 14:46:23 -05:00
server.h tipc: remove all enabled flags from all tipc components 2014-02-22 00:00:15 -05:00
socket.c tipc: avoid to unnecessary process switch under non-block mode 2014-03-06 14:46:23 -05:00
subscr.c tipc: allow connection shutdown callback to be invoked in advance 2014-03-06 14:46:23 -05:00
subscr.h
sysctl.c