summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'openvz-sources/022.078/5214_diff-qla-compile-fix-20051031.patch')
-rw-r--r--openvz-sources/022.078/5214_diff-qla-compile-fix-20051031.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/openvz-sources/022.078/5214_diff-qla-compile-fix-20051031.patch b/openvz-sources/022.078/5214_diff-qla-compile-fix-20051031.patch
new file mode 100644
index 0000000..54df786
--- /dev/null
+++ b/openvz-sources/022.078/5214_diff-qla-compile-fix-20051031.patch
@@ -0,0 +1,31 @@
+--- ./drivers/scsi/qla4xxx/ql4_init.c.qlafix 2005-10-29 19:09:50.000000000 +0400
++++ ./drivers/scsi/qla4xxx/ql4_init.c 2005-10-31 10:00:49.000000000 +0300
+@@ -2920,21 +2920,23 @@
+ lun_entry = tgt_entry->olun[lun];
+ if (lun_entry != NULL) {
+ unsigned long cpu_flags;
++ uint16_t retry_count;
+
+ spin_lock_irqsave(&lun_entry->lun_lock,
+ cpu_flags);
+
++#ifndef CONFIG_SCSI_QLA4XXX_USE_KERNELQ
++ retry_count = ha->retry_srb_q_count;
++#else
++ retry_count = 0;
++#endif
+ QL4PRINT(QLP4, printk(
+ "scsi%d:%d:%d:%d: %s: flushing "
+ "srbs, pendq_cnt=%d, retryq_cnt="
+ "%d, activeq_cnt=%d\n", ha->host_no,
+ ddb_entry->bus, tgt_entry->id, lun,
+ __func__, 0 ,
+-#ifndef CONFIG_SCSI_QLA4XXX_USE_KERNELQ
+- ha->retry_srb_q_count,
+-#else
+- 0,
+-#endif
++ retry_count,
+ ha->active_srb_count));
+
+ qla4xxx_flush_all_srbs(ha, ddb_entry,