mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* ancient block_dev patch
@ 2003-03-24 16:41 davej
  2003-03-24 18:16 ` Andrew Morton
  2003-03-24 18:16 ` Christoph Hellwig
  0 siblings, 2 replies; 4+ messages in thread
From: davej @ 2003-03-24 16:41 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel

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);

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-03-24 18:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-24 16:41 ancient block_dev patch davej
2003-03-24 18:16 ` Andrew Morton
2003-03-24 18:16 ` Christoph Hellwig
2003-03-24 18:29   ` Arjan van de Ven

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®