]> git.itanic.dy.fi Git - linux-stable/commit
scsi: qla2xxx: Mask off Scope bits in retry delay
authorAnil Gurumurthy <anil.gurumurthy@cavium.com>
Wed, 6 Jun 2018 15:41:42 +0000 (08:41 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 8 Jun 2018 01:50:00 +0000 (21:50 -0400)
commit3cedc8797b9c0f2222fd45a01f849c57c088828b
tree20ff6df60fd29dc7551248f0759536cfff5fd37c
parent3cb182b3fa8b7a61f05c671525494697cba39c6a
scsi: qla2xxx: Mask off Scope bits in retry delay

Some newer target uses "Status Qualifier" response in a returned "Busy
Status". This new response code of 0x4001, which is "Scope" bits,
translates to "Affects all units accessible by target".  Due to this new
value returned in the Scope bits, driver was using that value as timeout
value which resulted into driver waiting for 27min timeout.

This patch masks off this Scope bits so that driver does not use this
value as retry delay time.

Cc: <stable@vger.kernel.org>
Signed-off-by: Anil Gurumurthy <anil.gurumurthy@cavium.com>
Signed-off-by: Giridhar Malavali <giridhar.malavali@cavium.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Reviewed-by: Martin Wilck <mwilck@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_isr.c