mirror of
https://github.com/torvalds/linux.git
synced 2026-11-30 18:42:21 +00:00
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>