[SCSI] modify change_queue_depth to take in reason why it is being called
[deliverable/linux.git] / drivers / scsi / ibmvscsi / ibmvfc.c
index bc9beb8c587c73fb47c1204b2a5779adde69c3be..87b536a97cb4b7abddb1c46f7ac734926d61f1dd 100644 (file)
@@ -2764,12 +2764,17 @@ static int ibmvfc_slave_configure(struct scsi_device *sdev)
  * ibmvfc_change_queue_depth - Change the device's queue depth
  * @sdev:      scsi device struct
  * @qdepth:    depth to set
+ * @reason:    calling context
  *
  * Return value:
  *     actual depth set
  **/
-static int ibmvfc_change_queue_depth(struct scsi_device *sdev, int qdepth)
+static int ibmvfc_change_queue_depth(struct scsi_device *sdev, int qdepth,
+                                    int reason)
 {
+       if (reason != SCSI_QDEPTH_DEFAULT)
+               return -EOPNOTSUPP;
+
        if (qdepth > IBMVFC_MAX_CMDS_PER_LUN)
                qdepth = IBMVFC_MAX_CMDS_PER_LUN;
 
This page took 0.02456 seconds and 5 git commands to generate.