Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148882961
D30296.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D30296.diff
View Options
diff --git a/sys/cam/ata/ata_xpt.c b/sys/cam/ata/ata_xpt.c
--- a/sys/cam/ata/ata_xpt.c
+++ b/sys/cam/ata/ata_xpt.c
@@ -1796,10 +1796,18 @@
{
if (start_ccb->ccb_h.func_code != XPT_ATA_IO) {
+#ifdef notyet
KASSERT((start_ccb->ccb_h.alloc_flags & CAM_CCB_FROM_UMA) == 0,
("%s: ccb %p, func_code %#x should not be allocated "
"from UMA zone\n",
__func__, start_ccb, start_ccb->ccb_h.func_code));
+#else
+ if ((start_ccb->ccb_h.alloc_flags & CAM_CCB_FROM_UMA) != 0) {
+ printf("%s: ccb %p, func_code %#x should not be allocated "
+ "from UMA zone\n",
+ __func__, start_ccb, start_ccb->ccb_h.func_code);
+ }
+#endif
}
switch (start_ccb->ccb_h.func_code) {
diff --git a/sys/cam/scsi/scsi_xpt.c b/sys/cam/scsi/scsi_xpt.c
--- a/sys/cam/scsi/scsi_xpt.c
+++ b/sys/cam/scsi/scsi_xpt.c
@@ -2626,10 +2626,18 @@
{
if (start_ccb->ccb_h.func_code != XPT_SCSI_IO) {
+#ifdef notyet
KASSERT((start_ccb->ccb_h.alloc_flags & CAM_CCB_FROM_UMA) == 0,
("%s: ccb %p, func_code %#x should not be allocated "
"from UMA zone\n",
__func__, start_ccb, start_ccb->ccb_h.func_code));
+#else
+ if ((start_ccb->ccb_h.alloc_flags & CAM_CCB_FROM_UMA) != 0) {
+ printf("%s: ccb %p, func_code %#x should not be allocated "
+ "from UMA zone\n",
+ __func__, start_ccb, start_ccb->ccb_h.func_code);
+ }
+#endif
}
switch (start_ccb->ccb_h.func_code) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 21, 6:28 PM (3 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30085465
Default Alt Text
D30296.diff (1 KB)
Attached To
Mode
D30296: cam: turn KASSERTs into printfs for now
Attached
Detach File
Event Timeline
Log In to Comment