Re: [Patch net] vsock: use new wait API for vsock_stream_sendmsg()

2017-05-22 Thread David Miller
From: Cong Wang Date: Fri, 19 May 2017 11:21:59 -0700 > 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_loc

Re: [Patch net] vsock: use new wait API for vsock_stream_sendmsg()

2017-05-22 Thread Stefan Hajnoczi
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_

[Patch net] vsock: use new wait API for vsock_stream_sendmsg()

2017-05-19 Thread Cong Wang
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