Linux-kernel mailing list archive 2000-04,: Re: [FIX] Re: IDE problem with 2.3.39pre2-2.3.41pre3 on Athlon system

# Re: [FIX] Re: IDE problem with 2.3.39pre2-2.3.41pre3 on Athlon system

Alexander Viro (aviro@redhat.com)
Sat, 29 Jan 2000 05:19:19 -0500 (EST)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Manfred Spraul: "PAE36: pmd_ERROR() during ioremap()"
- Previous message: Alexander Viro: "[FIX] Re: IDE problem with 2.3.39pre2-2.3.41pre3 on Athlon system"

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@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

- Next message: Manfred Spraul: "PAE36: pmd_ERROR() during ioremap()"
- Previous message: Alexander Viro: "[FIX] Re: IDE problem with 2.3.39pre2-2.3.41pre3 on Athlon system"