]> git.baikalelectronics.ru Git - kernel.git/commit
AF_VSOCK: Shrink the area influenced by prepare_to_wait
authorClaudio Imbrenda <imbrenda@linux.vnet.ibm.com>
Tue, 22 Mar 2016 16:05:52 +0000 (17:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Mar 2016 20:18:41 +0000 (16:18 -0400)
commit55d149a05520872c5a5f3231f50a99222c8a7901
tree8ca3e07cbeae365ba4d5d359e5931261ed0151e4
parentc5be8f92d3cec21bacd7b6fddb161c6b2266ff0b
AF_VSOCK: Shrink the area influenced by prepare_to_wait

When a thread is prepared for waiting by calling prepare_to_wait, sleeping
is not allowed until either the wait has taken place or finish_wait has
been called.  The existing code in af_vsock imposed unnecessary no-sleep
assumptions to a broad list of backend functions.
This patch shrinks the influence of prepare_to_wait to the area where it
is strictly needed, therefore relaxing the no-sleep restriction there.

Signed-off-by: Claudio Imbrenda <imbrenda@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/vmw_vsock/af_vsock.c