]> git.karo-electronics.de Git - linux-beck.git/commit
megaraid_sas: reserve commands for IOCTLs and internal DCMDs
authorSumit.Saxena@avagotech.com <Sumit.Saxena@avagotech.com>
Mon, 5 Jan 2015 14:36:23 +0000 (20:06 +0530)
committerChristoph Hellwig <hch@lst.de>
Fri, 9 Jan 2015 14:44:36 +0000 (15:44 +0100)
commitae09a6c1fd421887fa4885adb7c55ccc8074c441
tree1c7acea04f52f51992d24a29d5b758c0317d9966
parentc8dd61eff2780c481fcf919c1572e16e397c714e
megaraid_sas: reserve commands for IOCTLs and internal DCMDs

1) For fusion adapters, limit reserved frames for non SCSI commands to 8
   (3 for parallel IOCTLs + 5 for driver's internal DCMDs).
   Earlier reserved commands for non SCSI IO frames was set to 32, so with
   this implementation, increased per controller "can_queue".
   Behavior of MFI controllers will remain unchanged.

2) Optimize the code related to per controller's 'can_queue' setting.

Signed-off-by: Sumit Saxena <sumit.saxena@avagotech.com>
Signed-off-by: Chaitra Basappa <chaitra.basappa@avagotech.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/megaraid/megaraid_sas.h
drivers/scsi/megaraid/megaraid_sas_base.c
drivers/scsi/megaraid/megaraid_sas_fusion.c