[Oracleasm-commits] jlbec commits r328 - trunk/kernel
svn-commits@oss.oracle.com
svn-commits at oss.oracle.com
Tue Feb 21 16:49:24 CST 2006
Author: jlbec
Date: 2006-02-21 16:49:23 -0600 (Tue, 21 Feb 2006)
New Revision: 328
Modified:
trunk/kernel/oracleasm.c
Log:
o Fix a race in cleanup_ios.
Modified: trunk/kernel/oracleasm.c
===================================================================
--- trunk/kernel/oracleasm.c 2005-12-19 19:18:07 UTC (rev 327)
+++ trunk/kernel/oracleasm.c 2006-02-21 22:49:23 UTC (rev 328)
@@ -1893,14 +1893,16 @@
struct asmfs_file_info *afi = ASMFS_FILE(file);
struct bio *bio;
+ spin_lock_irq(&afi->f_lock);
while (afi->f_bio_free) {
- spin_lock_irq(&afi->f_lock);
bio = afi->f_bio_free;
afi->f_bio_free = bio->bi_private;
+
spin_unlock_irq(&afi->f_lock);
-
bio_unmap_user(bio);
+ spin_lock_irq(&afi->f_lock);
}
+ spin_unlock_irq(&afi->f_lock);
}
static int asmfs_file_open(struct inode * inode, struct file * file)
More information about the Oracleasm-commits
mailing list