diff options
Diffstat (limited to 'drivers/scsi/pmcraid.c')
-rw-r--r-- | drivers/scsi/pmcraid.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index 0a97bc9074bb..4874dd62a62f 100644 --- a/drivers/scsi/pmcraid.c +++ b/drivers/scsi/pmcraid.c | |||
@@ -278,12 +278,17 @@ static void pmcraid_slave_destroy(struct scsi_device *scsi_dev) | |||
278 | * pmcraid_change_queue_depth - Change the device's queue depth | 278 | * pmcraid_change_queue_depth - Change the device's queue depth |
279 | * @scsi_dev: scsi device struct | 279 | * @scsi_dev: scsi device struct |
280 | * @depth: depth to set | 280 | * @depth: depth to set |
281 | * @reason: calling context | ||
281 | * | 282 | * |
282 | * Return value | 283 | * Return value |
283 | * actual depth set | 284 | * actual depth set |
284 | */ | 285 | */ |
285 | static int pmcraid_change_queue_depth(struct scsi_device *scsi_dev, int depth) | 286 | static int pmcraid_change_queue_depth(struct scsi_device *scsi_dev, int depth, |
287 | int reason) | ||
286 | { | 288 | { |
289 | if (reason != SCSI_QDEPTH_DEFAULT) | ||
290 | return -EOPNOTSUPP; | ||
291 | |||
287 | if (depth > PMCRAID_MAX_CMD_PER_LUN) | 292 | if (depth > PMCRAID_MAX_CMD_PER_LUN) |
288 | depth = PMCRAID_MAX_CMD_PER_LUN; | 293 | depth = PMCRAID_MAX_CMD_PER_LUN; |
289 | 294 | ||