OSDN Git Service

scsi: esp_scsi: Grant disconnect privilege for untagged commands
authorFinn Thain <fthain@telegraphics.com.au>
Tue, 16 Oct 2018 05:31:25 +0000 (16:31 +1100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 18 Oct 2018 01:37:26 +0000 (21:37 -0400)
commit87c58ef5a57f46b1d78117317a7d8806ad16f404
treefc924db5c7cf5584984116b3c3d35aab5cd5204a
parentfd47d919d0c336e7c22862b51ee94927ffea227a
scsi: esp_scsi: Grant disconnect privilege for untagged commands

A SCSI device is not granted disconnect privilege by an esp_scsi host
unless that device has its simple_tags flag set. However, a device may
support disconnect/reselect and not support command queueing. Allow such
devices to disconnect and thereby improve bus utilization.

Drop the redundant 'lp' check. The mid-layer invokes .slave_alloc and
.slave_destroy in such a way that we may rely on scmd->device->hostdata
for as long as scmd belongs to the low-level driver.

Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/esp_scsi.c