]> err.no Git - linux-2.6/commitdiff
[SCSI] tgt: fix can_queue bug
authorFUJITA Tomonori <tomof@acm.org>
Fri, 31 Aug 2007 17:02:16 +0000 (02:02 +0900)
committerJames Bottomley <jejb@mulgrave.localdomain>
Fri, 12 Oct 2007 18:46:51 +0000 (14:46 -0400)
should use host->can_queue instead of host->hostt->can_queue.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_tgt_lib.c

index 5851c8e53e40d3c0edd39688b9af3e92ec4b3258..66c692ffa3054a2ddafa8c8435bbe642e3737e5c 100644 (file)
@@ -237,7 +237,7 @@ int scsi_tgt_alloc_queue(struct Scsi_Host *shost)
         * command as is recvd to userspace. uspace can then make
         * sure we do not overload the HBA
         */
-       q->nr_requests = shost->hostt->can_queue;
+       q->nr_requests = shost->can_queue;
        /*
         * We currently only support software LLDs so this does
         * not matter for now. Do we need this for the cards we support?