From: davej@codemonkey.org.uk
To: akpm@zip.com.au
Cc: linux-kernel@vger.kernel.org
Subject: ancient block_dev patch
Date: Mon, 24 Mar 2003 16:41:54 +0000 [thread overview]
Message-ID: <200303241642.h2OGg735008305@deviant.impure.org.uk> (raw)
Andrew,
What became of this patch ? Is it needed ?
diff -urpN --exclude-from=/home/davej/.exclude bk-linus/fs/block_dev.c linux-2.5/fs/block_dev.c
--- bk-linus/fs/block_dev.c 2003-03-17 12:40:51.000000000 +0000
+++ linux-2.5/fs/block_dev.c 2003-03-17 13:09:03.000000000 +0000
@@ -653,15 +653,16 @@ int blkdev_put(struct block_device *bdev
struct gendisk *disk = bdev->bd_disk;
down(&bdev->bd_sem);
- switch (kind) {
- case BDEV_FILE:
- case BDEV_FS:
- sync_blockdev(bd_inode->i_bdev);
- break;
- }
lock_kernel();
- if (!--bdev->bd_openers)
+ if (!--bdev->bd_openers) {
+ switch (kind) {
+ case BDEV_FILE:
+ case BDEV_FS:
+ sync_blockdev(bd_inode->i_bdev);
+ break;
+ }
kill_bdev(bdev);
+ }
if (bdev->bd_contains == bdev) {
if (disk->fops->release)
ret = disk->fops->release(bd_inode, NULL);
next reply other threads:[~2003-03-24 17:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-24 16:41 davej [this message]
2003-03-24 18:16 ` Andrew Morton
2003-03-24 18:16 ` Christoph Hellwig
2003-03-24 18:29 ` Arjan van de Ven
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=200303241642.h2OGg735008305@deviant.impure.org.uk \
--to=davej@codemonkey.org.uk \
--cc=akpm@zip.com.au \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®