All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: "Michael S. Tsirkin" <mst@redhat.com>,
	Dan Carpenter <dan.carpenter@oracle.com>
Cc: kernel-janitors@vger.kernel.org,
	virtualization@lists.linux-foundation.org
Subject: Re: [patch] virtio_blk: lock() => unlock() typo in virtblk_config_changed_work()
Date: Wed, 04 Jan 2012 02:44:55 +0000	[thread overview]
Message-ID: <87wr98ci3s.fsf@rustcorp.com.au> (raw)
In-Reply-To: <20120103153127.GA8440@redhat.com>

On Tue, 3 Jan 2012 17:31:28 +0200, "Michael S. Tsirkin" <mst@redhat.com> wrote:
> On Tue, Jan 03, 2012 at 05:45:13PM +0300, Dan Carpenter wrote:
> > This will deadlock.
> > 
> > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
> > 
> > diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
> > index f3d77b3..ba73661 100644
> > --- a/drivers/block/virtio_blk.c
> > +++ b/drivers/block/virtio_blk.c
> > @@ -352,7 +352,7 @@ static void virtblk_config_changed_work(struct work_struct *work)
> >  
> >  	set_capacity(vblk->disk, capacity);
> >  done:
> > -	mutex_lock(&vblk->config_lock);
> > +	mutex_unlock(&vblk->config_lock);
> >  }
> >  
> >  static void virtblk_config_changed(struct virtio_device *vdev)
> 
> Good catch.
> Acked-by: Michael S. Tsirkin <mst@redhat.com>

Indeed, I folded it into that patch.

Thanks!
Rusty.

WARNING: multiple messages have this Message-ID (diff)
From: Rusty Russell <rusty@rustcorp.com.au>
To: "Michael S. Tsirkin" <mst@redhat.com>,
	Dan Carpenter <dan.carpenter@oracle.com>
Cc: kernel-janitors@vger.kernel.org,
	virtualization@lists.linux-foundation.org
Subject: Re: [patch] virtio_blk: lock() => unlock() typo in virtblk_config_changed_work()
Date: Wed, 04 Jan 2012 13:02:55 +1030	[thread overview]
Message-ID: <87wr98ci3s.fsf@rustcorp.com.au> (raw)
In-Reply-To: <20120103153127.GA8440@redhat.com>

On Tue, 3 Jan 2012 17:31:28 +0200, "Michael S. Tsirkin" <mst@redhat.com> wrote:
> On Tue, Jan 03, 2012 at 05:45:13PM +0300, Dan Carpenter wrote:
> > This will deadlock.
> > 
> > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
> > 
> > diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
> > index f3d77b3..ba73661 100644
> > --- a/drivers/block/virtio_blk.c
> > +++ b/drivers/block/virtio_blk.c
> > @@ -352,7 +352,7 @@ static void virtblk_config_changed_work(struct work_struct *work)
> >  
> >  	set_capacity(vblk->disk, capacity);
> >  done:
> > -	mutex_lock(&vblk->config_lock);
> > +	mutex_unlock(&vblk->config_lock);
> >  }
> >  
> >  static void virtblk_config_changed(struct virtio_device *vdev)
> 
> Good catch.
> Acked-by: Michael S. Tsirkin <mst@redhat.com>

Indeed, I folded it into that patch.

Thanks!
Rusty.

  reply	other threads:[~2012-01-04  2:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-03 14:45 [patch] virtio_blk: lock() => unlock() typo in Dan Carpenter
2012-01-03 14:45 ` [patch] virtio_blk: lock() => unlock() typo in virtblk_config_changed_work() Dan Carpenter
2012-01-03 15:31 ` [patch] virtio_blk: lock() => unlock() typo in Michael S. Tsirkin
2012-01-03 15:31   ` [patch] virtio_blk: lock() => unlock() typo in virtblk_config_changed_work() Michael S. Tsirkin
2012-01-04  2:32   ` Rusty Russell [this message]
2012-01-04  2:44     ` Rusty Russell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wr98ci3s.fsf@rustcorp.com.au \
    --to=rusty@rustcorp.com.au \
    --cc=dan.carpenter@oracle.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=virtualization@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.