diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2017-05-19 20:21:59 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-22 20:39:36 +0200 |
commit | 499fde662f1957e3cb8d192a94a099ebe19c714b (patch) | |
tree | 657506549f0e9edf08189ae6171c7a2e966f7df4 /net/sched/cls_matchall.c | |
parent | bonding: fix randomly populated arp target array (diff) | |
download | linux-499fde662f1957e3cb8d192a94a099ebe19c714b.tar.xz linux-499fde662f1957e3cb8d192a94a099ebe19c714b.zip |
vsock: use new wait API for vsock_stream_sendmsg()
As reported by Michal, vsock_stream_sendmsg() could still
sleep at vsock_stream_has_space() after prepare_to_wait():
vsock_stream_has_space
vmci_transport_stream_has_space
vmci_qpair_produce_free_space
qp_lock
qp_acquire_queue_mutex
mutex_lock
Just switch to the new wait API like we did for commit
d9dc8b0f8b4e ("net: fix sleeping for sk_wait_event()").
Reported-by: Michal Kubecek <mkubecek@suse.cz>
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Cc: Jorgen Hansen <jhansen@vmware.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Claudio Imbrenda <imbrenda@linux.vnet.ibm.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions