[FIX] Re: IDE problem with 2.3.39pre2-2.3.41pre3 on Athlon system
Alexander Viro
aviro en redhat.com
Sab Ene 29 12:09:36 CST 2000
On Sat, 29 Jan 2000, Alexander Viro wrote:
Oops ;-/ Got the patch mangled by MUA - sorry about that. Normal variant
follows:
--- linux-2.3.41/fs/block_dev.c Fri Jan 28 21:45:45 2000
+++ linux-bird.bdev/fs/block_dev.c Sat Jan 29 05:05:02 2000
@@ -573,6 +573,8 @@
ret = bdev->bd_op->open(fake_inode, &fake_file);
if (!ret)
atomic_inc(&bdev->bd_openers);
+ else if (!atomic_read(&bdev->bd_openers))
+ bdev->bd_op = NULL;
iput(fake_inode);
}
}
@@ -593,6 +595,8 @@
ret = bdev->bd_op->open(inode,filp);
if (!ret)
atomic_inc(&bdev->bd_openers);
+ else if (!atomic_read(&bdev->bd_openers))
+ bdev->bd_op = NULL;
}
up(&bdev->bd_sem);
return ret;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo en vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
Más información sobre la lista de distribución Ayuda