diff options
author | David S. Miller <davem@davemloft.net> | 2009-12-11 20:12:17 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-12-11 20:12:17 -0500 |
commit | 501706565b2d4d2d40d0d301d5411ede099b8a6f (patch) | |
tree | 142a18bf1f1e74a09dbfa27540b893ade0fd797d /drivers/scsi/pmcraid.c | |
parent | e93737b0f0159a61772894943199fd3b6f315641 (diff) | |
parent | 2fe77b81c77eed92c4c0439f74c8148a295b4a86 (diff) |
Merge branch 'master' of /home/davem/src/GIT/linux-2.6/
Conflicts:
include/net/tcp.h
Diffstat (limited to 'drivers/scsi/pmcraid.c')
-rw-r--r-- | drivers/scsi/pmcraid.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index 0a97bc9074bb..34c6b896a91b 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 | ||
@@ -3342,7 +3347,7 @@ static int pmcraid_chr_fasync(int fd, struct file *filep, int mode) | |||
3342 | * @direction : data transfer direction | 3347 | * @direction : data transfer direction |
3343 | * | 3348 | * |
3344 | * Return value | 3349 | * Return value |
3345 | * 0 on sucess, non-zero error code on failure | 3350 | * 0 on success, non-zero error code on failure |
3346 | */ | 3351 | */ |
3347 | static int pmcraid_build_passthrough_ioadls( | 3352 | static int pmcraid_build_passthrough_ioadls( |
3348 | struct pmcraid_cmd *cmd, | 3353 | struct pmcraid_cmd *cmd, |
@@ -3401,7 +3406,7 @@ static int pmcraid_build_passthrough_ioadls( | |||
3401 | * @direction: data transfer direction | 3406 | * @direction: data transfer direction |
3402 | * | 3407 | * |
3403 | * Return value | 3408 | * Return value |
3404 | * 0 on sucess, non-zero error code on failure | 3409 | * 0 on success, non-zero error code on failure |
3405 | */ | 3410 | */ |
3406 | static void pmcraid_release_passthrough_ioadls( | 3411 | static void pmcraid_release_passthrough_ioadls( |
3407 | struct pmcraid_cmd *cmd, | 3412 | struct pmcraid_cmd *cmd, |
@@ -3429,7 +3434,7 @@ static void pmcraid_release_passthrough_ioadls( | |||
3429 | * @arg: pointer to pmcraid_passthrough_buffer user buffer | 3434 | * @arg: pointer to pmcraid_passthrough_buffer user buffer |
3430 | * | 3435 | * |
3431 | * Return value | 3436 | * Return value |
3432 | * 0 on sucess, non-zero error code on failure | 3437 | * 0 on success, non-zero error code on failure |
3433 | */ | 3438 | */ |
3434 | static long pmcraid_ioctl_passthrough( | 3439 | static long pmcraid_ioctl_passthrough( |
3435 | struct pmcraid_instance *pinstance, | 3440 | struct pmcraid_instance *pinstance, |