fcoe, libfc: fix an libfc issue with queue ramp down in libfc
authorVasu Dev <vasu.dev@intel.com>
Fri, 16 Oct 2009 00:46:55 +0000 (17:46 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 28 Jan 2010 23:01:40 +0000 (15:01 -0800)
commite166cb138dbfffc03d49ece03d27e9855db00f63
treec8688798ba2afc431183bdf6292b7f838ddb1bc6
parent2792e0ceb2452e55269443158a6076a721d7556b
fcoe, libfc: fix an libfc issue with queue ramp down in libfc

commit 14caf44c69184ed72d46a2f883311daf27a4192f upstream.

The cmd_per_lun value is used by scsi-ml as fall back lowest
queue_depth value but in case of libfc cmd_per_lun is set to
same value as max queue_depth = 32.

So this patch reduces cmd_per_lun value to 3 and configures
each lun with default max queue_depth 32 in fc_slave_alloc.

Signed-off-by: Vasu Dev <vasu.dev@intel.com>
Acked-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/fcoe/fcoe.c
drivers/scsi/libfc/fc_fcp.c