scsi_dh_rdac: always retry MODE SELECT on command lock violation
authorHannes Reinecke <hare@suse.de>
Fri, 22 Jan 2016 14:42:41 +0000 (15:42 +0100)
committerSasha Levin <sasha.levin@oracle.com>
Sun, 28 Feb 2016 05:09:41 +0000 (00:09 -0500)
commitd1d1545f542c5ab95d2bbec49f7b425fcf1f4166
treef7a414d14a70d0a402398cc44862802bbc523620
parent79179a68458a7fddcf35adb16d1f7a7880aa41e7
scsi_dh_rdac: always retry MODE SELECT on command lock violation

[ Upstream commit d2d06d4fe0f2cc2df9b17fefec96e6e1a1271d91 ]

If MODE SELECT returns with sense '05/91/36' (command lock violation)
it should always be retried without counting the number of retries.
During an HBA upgrade or similar circumstances one might see a flood
of MODE SELECT command from various HBAs, which will easily trigger
the sense code and exceed the retry count.

Cc: <stable@vger.kernel.org>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/scsi/device_handler/scsi_dh_rdac.c