OSDN Git Service

hpsa: use block layer tag for command allocation
authorWebb Scales <webbnh@hp.com>
Thu, 23 Apr 2015 14:35:04 +0000 (09:35 -0500)
committerJames Bottomley <JBottomley@Odin.com>
Sun, 31 May 2015 18:44:35 +0000 (11:44 -0700)
commit73153fe533bc6209802521fc62d3e3648581a121
tree3396077cbd3ecdb6bd9fd88544e945b415d8b364
parent8b47004a55123b38ed6e8b0d4c8e6427f80a4a45
hpsa: use block layer tag for command allocation

Rework slave allocation:
  - separate the tagging support setup from the hostdata setup
  - make the hostdata setup act consistently when the lookup fails
  - make the hostdata setup act consistently when the device is not added
  - set up the queue depth consistently across these scenarios
  - if the block layer mq support is not available, explicitly enable and
    activate the SCSI layer tcq support (and do this at allocation-time so
    that the tags will be available for INQUIRY commands)

Tweak slave configuration so that devices which are masked are also
not attached.

Reviewed-by: Scott Teel <scott.teel@pmcs.com>
Reviewed-by: Kevin Barnett <kevin.barnett@pmcs.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Reviewed-by: Hannes Reinecke <hare@Suse.de>
Signed-off-by: Webb Scales <webbnh@hp.com>
Signed-off-by: Don Brace <don.brace@pmcs.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/hpsa.c
drivers/scsi/hpsa.h