OSDN Git Service

scsi: bnx2fc: Handle scope bits when array returns BUSY or TSF
authorLaurence Oberman <loberman@redhat.com>
Wed, 11 Sep 2019 13:56:42 +0000 (09:56 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 24 Sep 2019 02:13:30 +0000 (22:13 -0400)
commitc9c53749375ccce0191f89b86732e642f914bd82
tree17d6e143d2cf388d552c9f487b8b67ed8c63b4ca
parente74006edd0d42b45ff37ae4ae13c614cfa30056b
scsi: bnx2fc: Handle scope bits when array returns BUSY or TSF

The qla2xxx driver had this issue as well when the newer array firmware
returned the retry_delay_timer in the fcp_rsp.  The bnx2fc is not handling
the masking of the scope bits either so the retry_delay_timestamp value
lands up being a large value added to the timer timestamp delaying I/O for
up to 27 Minutes.  This patch adds similar code to handle this to the
bnx2fc driver to avoid the huge delay.

Link: https://lore.kernel.org/r/1568210202-12794-1-git-send-email-loberman@redhat.com
Signed-off-by: Laurence Oberman <loberman@redhat.com>
Reported-by: David Jeffery <djeffery@redhat.com>
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/bnx2fc/bnx2fc_io.c