]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/scsi/hptiop.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/hirofumi/fatfs-2.6
[karo-tx-linux.git] / drivers / scsi / hptiop.c
index 5be67a6fca9343391fe67918eb9aac2bf2fb5ddb..4f0556571f80d933aa1fdc6f0b9ed34a493e2790 100644 (file)
@@ -861,10 +861,13 @@ static int hptiop_reset(struct scsi_cmnd *scp)
 }
 
 static int hptiop_adjust_disk_queue_depth(struct scsi_device *sdev,
-                                               int queue_depth)
+                                         int queue_depth, int reason)
 {
        struct hptiop_hba *hba = (struct hptiop_hba *)sdev->host->hostdata;
 
+       if (reason != SCSI_QDEPTH_DEFAULT)
+               return -EOPNOTSUPP;
+
        if (queue_depth > hba->max_requests)
                queue_depth = hba->max_requests;
        scsi_adjust_queue_depth(sdev, MSG_ORDERED_TAG, queue_depth);