[Oracleasm-commits] jlbec commits r334 - trunk/kernel
svn-commits@oss.oracle.com
svn-commits at oss.oracle.com
Mon Mar 13 19:27:02 CST 2006
Author: jlbec
Date: 2006-03-13 19:27:01 -0600 (Mon, 13 Mar 2006)
New Revision: 334
Modified:
trunk/kernel/oracleasm.c
Log:
o Improve a couple of the logging strings.
o Teach asm_submit_io() that bi_sectors is in 512B chunks, not in
hardsect_size chunks. This is important on s390x!
Modified: trunk/kernel/oracleasm.c
===================================================================
--- trunk/kernel/oracleasm.c 2006-02-22 23:43:47 UTC (rev 333)
+++ trunk/kernel/oracleasm.c 2006-03-14 01:27:01 UTC (rev 334)
@@ -1002,10 +1002,11 @@
goto out;
}
}
- mlog(ML_IOC, "r_status:0x%08X, bitmask:0x%08X, combined:0x%08X\n",
- r->r_status,
- (ASM_SUBMITTED | ASM_COMPLETED | ASM_ERROR),
- (r->r_status & (ASM_SUBMITTED | ASM_COMPLETED | ASM_ERROR)));
+ mlog(ML_IOC,
+ "r_status:0x%08X, bitmask:0x%08X, combined:0x%08X\n",
+ r->r_status,
+ (ASM_SUBMITTED | ASM_COMPLETED | ASM_ERROR),
+ (r->r_status & (ASM_SUBMITTED | ASM_COMPLETED | ASM_ERROR)));
if (r->r_status & ASM_FREE) {
u64 z = 0ULL;
if (copy_to_user(&(ioc->reserved_asm_ioc),
@@ -1337,8 +1338,10 @@
r->r_bio = NULL;
goto out_error;
}
+ mlog(ML_BIO, "Mapped bio 0x%p to request 0x%p\n", r->r_bio, r);
- r->r_bio->bi_sector = ioc->first_asm_ioc;
+ r->r_bio->bi_sector =
+ ioc->first_asm_ioc * (bdev_hardsect_size(bdev) >> 9);
/*
* If the bio is a bounced bio, we have to put the
@@ -1362,7 +1365,8 @@
return ret;
out_error:
- mlog(ML_REQUEST, "out_error on request 0x%p\n", r);
+ mlog(ML_REQUEST, "Submit-side error %d for request 0x%p\n",
+ ret, r);
asm_end_ioc(r, 0, ret);
goto out;
} /* asm_submit_io() */
@@ -1400,7 +1404,8 @@
return -EINVAL;
}
- mlog(ML_REQUEST|ML_IOC, "asm_request is valid...we think\n");
+ mlog(ML_REQUEST|ML_IOC,
+ "asm_request 0x%p is valid...we think\n", r);
if (!(r->r_status & (ASM_COMPLETED |
ASM_BUSY | ASM_ERROR))) {
spin_unlock_irq(&afi->f_lock);
@@ -1952,6 +1957,7 @@
afi->f_bio_free = bio->bi_private;
spin_unlock_irq(&afi->f_lock);
+ mlog(ML_BIO, "Unmapping bio 0x%p\n", bio);
bio_unmap_user(bio);
spin_lock_irq(&afi->f_lock);
}
@@ -2017,9 +2023,6 @@
aii = ASMFS_I(ASMFS_F2I(file));
afi = ASMFS_FILE(file);
- mlog_bug_on_msg(!afi, "No asmfs_file_info on filp 0x%p\n",
- file);
-
mlog(ML_ABI, "Release for filp 0x%p (afi = 0x%p)\n", file, afi);
/*
More information about the Oracleasm-commits
mailing list