From: Peter Zijlstra <a.p.zijlstra@chello.nl>
To: Jason Baron <jbaron@redhat.com>
Cc: neilb@suse.de, akpm@osdl.org, arjan@infradead.org,
mingo@redhat.com, axboe@suse.de, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] block_dev.c mutex_lock_nested() fix
Date: Wed, 23 Aug 2006 18:48:57 +0200 [thread overview]
Message-ID: <1156351737.3382.40.camel@twins> (raw)
In-Reply-To: <Pine.LNX.4.64.0608231104220.5899@dhcp83-20.boston.redhat.com>
On Wed, 2006-08-23 at 11:09 -0400, Jason Baron wrote:
> Hi,
>
> In the case below we are locking the whole disk not a partition. This
> change simply brings the code in line with the piece above where when we
> are the 'first' opener, and we are a partition.
Makes sense in that only whole devices have a partition count.
> Signed-off-by: Jason Baron <jbaron@redhat.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
> --- linux-2.6/fs/block_dev.c.bak
> +++ linux-2.6/fs/block_dev.c
> @@ -966,7 +966,7 @@ do_open(struct block_device *bdev, struc
> rescan_partitions(bdev->bd_disk, bdev);
> } else {
> mutex_lock_nested(&bdev->bd_contains->bd_mutex,
> - BD_MUTEX_PARTITION);
> + BD_MUTEX_WHOLE);
> bdev->bd_contains->bd_part_count++;
> mutex_unlock(&bdev->bd_contains->bd_mutex);
> }
next prev parent reply other threads:[~2006-08-23 16:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-23 15:09 [PATCH] block_dev.c mutex_lock_nested() fix Jason Baron
2006-08-23 16:48 ` Peter Zijlstra [this message]
2006-08-23 18:02 ` Andrew Morton
2006-08-23 17:51 ` Jason Baron
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=1156351737.3382.40.camel@twins \
--to=a.p.zijlstra@chello.nl \
--cc=akpm@osdl.org \
--cc=arjan@infradead.org \
--cc=axboe@suse.de \
--cc=jbaron@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=neilb@suse.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox