summaryrefslogtreecommitdiff
path: root/system/vhba-module/vhba-module_v730_SCSI.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/vhba-module/vhba-module_v730_SCSI.patch')
-rw-r--r--system/vhba-module/vhba-module_v730_SCSI.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/system/vhba-module/vhba-module_v730_SCSI.patch b/system/vhba-module/vhba-module_v730_SCSI.patch
new file mode 100644
index 0000000000..46cea328dd
--- /dev/null
+++ b/system/vhba-module/vhba-module_v730_SCSI.patch
@@ -0,0 +1,32 @@
+--- trunk/vhba-module/vhba.c 2010/08/15 20:11:18 691
++++ trunk/vhba-module/vhba.c 2011/02/27 15:56:27 730
+@@ -363,7 +363,7 @@
+ spin_unlock_irqrestore(&vhost->cmd_lock, flags);
+ }
+
+-static int vhba_queuecommand(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *))
++static int vhba_queuecommand_lck(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *))
+ {
+ struct vhba_device *vdev;
+ int retval;
+@@ -388,6 +388,12 @@
+ return retval;
+ }
+
++#ifdef DEF_SCSI_QCMD
++DEF_SCSI_QCMD(vhba_queuecommand)
++#else
++#define vhba_queuecommand vhba_queuecommand_lck
++#endif
++
+ static int vhba_abort(struct scsi_cmnd *cmd)
+ {
+ struct vhba_device *vdev;
+@@ -796,7 +802,7 @@
+ .poll = vhba_ctl_poll,
+ .unlocked_ioctl = vhba_ctl_ioctl,
+ #ifdef CONFIG_COMPAT
+- .compat_ioctl = vhba_ctl_compat_ioctl,
++ .compat_ioctl = vhba_ctl_compat_ioctl,
+ #endif
+ };