[SCSI] modify change_queue_depth to take in reason why it is being called
[deliverable/linux.git] / drivers / s390 / scsi / zfcp_scsi.c
index 0e1a34627a2e694d25d3abe135991df91c997035..ad11547017294c3fc410fa0ef5abe585c584cd75 100644 (file)
@@ -29,8 +29,12 @@ char *zfcp_get_fcp_sns_info_ptr(struct fcp_rsp_iu *fcp_rsp_iu)
        return fcp_sns_info_ptr;
 }
 
-static int zfcp_scsi_change_queue_depth(struct scsi_device *sdev, int depth)
+static int zfcp_scsi_change_queue_depth(struct scsi_device *sdev, int depth,
+                                       int reason)
 {
+       if (reason != SCSI_QDEPTH_DEFAULT)
+               return -EOPNOTSUPP;
+
        scsi_adjust_queue_depth(sdev, scsi_get_tag_type(sdev), depth);
        return sdev->queue_depth;
 }
This page took 0.025251 seconds and 5 git commands to generate.