diff options
Diffstat (limited to 'drivers/scsi/3w-xxxx.c')
-rw-r--r-- | drivers/scsi/3w-xxxx.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/scsi/3w-xxxx.c b/drivers/scsi/3w-xxxx.c index faa0fcfed71e..d224294c38fb 100644 --- a/drivers/scsi/3w-xxxx.c +++ b/drivers/scsi/3w-xxxx.c | |||
@@ -521,8 +521,12 @@ static ssize_t tw_show_stats(struct device *dev, struct device_attribute *attr, | |||
521 | } /* End tw_show_stats() */ | 521 | } /* End tw_show_stats() */ |
522 | 522 | ||
523 | /* This function will set a devices queue depth */ | 523 | /* This function will set a devices queue depth */ |
524 | static int tw_change_queue_depth(struct scsi_device *sdev, int queue_depth) | 524 | static int tw_change_queue_depth(struct scsi_device *sdev, int queue_depth, |
525 | int reason) | ||
525 | { | 526 | { |
527 | if (reason != SCSI_QDEPTH_DEFAULT) | ||
528 | return -EOPNOTSUPP; | ||
529 | |||
526 | if (queue_depth > TW_Q_LENGTH-2) | 530 | if (queue_depth > TW_Q_LENGTH-2) |
527 | queue_depth = TW_Q_LENGTH-2; | 531 | queue_depth = TW_Q_LENGTH-2; |
528 | scsi_adjust_queue_depth(sdev, MSG_ORDERED_TAG, queue_depth); | 532 | scsi_adjust_queue_depth(sdev, MSG_ORDERED_TAG, queue_depth); |