diff options
Diffstat (limited to 'drivers/scsi/3w-xxxx.c')
-rw-r--r-- | drivers/scsi/3w-xxxx.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/scsi/3w-xxxx.c b/drivers/scsi/3w-xxxx.c index faa0fcfed71e..5faf903ca8c8 100644 --- a/drivers/scsi/3w-xxxx.c +++ b/drivers/scsi/3w-xxxx.c | |||
@@ -8,7 +8,7 @@ | |||
8 | 8 | ||
9 | Copyright (C) 1999-2009 3ware Inc. | 9 | Copyright (C) 1999-2009 3ware Inc. |
10 | 10 | ||
11 | Kernel compatiblity By: Andre Hedrick <andre@suse.com> | 11 | Kernel compatibility By: Andre Hedrick <andre@suse.com> |
12 | Non-Copyright (C) 2000 Andre Hedrick <andre@suse.com> | 12 | Non-Copyright (C) 2000 Andre Hedrick <andre@suse.com> |
13 | 13 | ||
14 | Further tiny build fixes and trivial hoovering Alan Cox | 14 | Further tiny build fixes and trivial hoovering Alan Cox |
@@ -205,6 +205,7 @@ | |||
205 | #include <linux/errno.h> | 205 | #include <linux/errno.h> |
206 | #include <linux/types.h> | 206 | #include <linux/types.h> |
207 | #include <linux/delay.h> | 207 | #include <linux/delay.h> |
208 | #include <linux/gfp.h> | ||
208 | #include <linux/pci.h> | 209 | #include <linux/pci.h> |
209 | #include <linux/time.h> | 210 | #include <linux/time.h> |
210 | #include <linux/mutex.h> | 211 | #include <linux/mutex.h> |
@@ -521,8 +522,12 @@ static ssize_t tw_show_stats(struct device *dev, struct device_attribute *attr, | |||
521 | } /* End tw_show_stats() */ | 522 | } /* End tw_show_stats() */ |
522 | 523 | ||
523 | /* This function will set a devices queue depth */ | 524 | /* This function will set a devices queue depth */ |
524 | static int tw_change_queue_depth(struct scsi_device *sdev, int queue_depth) | 525 | static int tw_change_queue_depth(struct scsi_device *sdev, int queue_depth, |
526 | int reason) | ||
525 | { | 527 | { |
528 | if (reason != SCSI_QDEPTH_DEFAULT) | ||
529 | return -EOPNOTSUPP; | ||
530 | |||
526 | if (queue_depth > TW_Q_LENGTH-2) | 531 | if (queue_depth > TW_Q_LENGTH-2) |
527 | queue_depth = TW_Q_LENGTH-2; | 532 | queue_depth = TW_Q_LENGTH-2; |
528 | scsi_adjust_queue_depth(sdev, MSG_ORDERED_TAG, queue_depth); | 533 | scsi_adjust_queue_depth(sdev, MSG_ORDERED_TAG, queue_depth); |