On Fri, May 19, 2017 at 11:21:59AM -0700, Cong Wang wrote: > 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 <mkube...@suse.cz> > Cc: Stefan Hajnoczi <stefa...@redhat.com> > Cc: Jorgen Hansen <jhan...@vmware.com> > Cc: "Michael S. Tsirkin" <m...@redhat.com> > Cc: Claudio Imbrenda <imbre...@linux.vnet.ibm.com> > Signed-off-by: Cong Wang <xiyou.wangc...@gmail.com> > --- > net/vmw_vsock/af_vsock.c | 21 ++++++++------------- > 1 file changed, 8 insertions(+), 13 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
signature.asc
Description: PGP signature