From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: Re: locking issue in vhost_net_set_backend Date: Tue, 16 Mar 2010 16:48:24 +0200 Message-ID: <20100316144824.GA12793@redhat.com> References: <4B9F8E7F.7070709@gmail.com> <4B9F8F4F.7010103@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org, LKML To: Jiri Slaby Return-path: Received: from mx1.redhat.com ([209.132.183.28]:2159 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966284Ab0CPOvv (ORCPT ); Tue, 16 Mar 2010 10:51:51 -0400 Content-Disposition: inline In-Reply-To: <4B9F8F4F.7010103@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, Mar 16, 2010 at 03:01:51PM +0100, Jiri Slaby wrote: > On 03/16/2010 02:58 PM, Jiri Slaby wrote: >> I don't see how the lock is unlocked on the error paths and as it is not >> on none of the them maybe I'm missing something? > > And there is one more issue in vhost_set_vring, several returns from > VHOST_SET_VRING_KICK, VHOST_SET_VRING_CALL, VHOST_SET_VRING_ERR with the > vq->mutex held. Thanks! I have patches for these that I'll push out shortly. > -- > js