summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ec85e5c)
raw | patch | inline | side by side (parent: ec85e5c)
author | Quinn Tran <qutran@marvell.com> | |
Thu, 12 Sep 2019 18:09:06 +0000 (11:09 -0700) | ||
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
Sun, 27 Oct 2019 20:29:47 +0000 (21:29 +0100) |
[ Upstream commit c3b6a1d397420a0fdd97af2f06abfb78adc370df ]
There are instances, though rare, where a LOGO request cannot be sent out
and the thread in free session done can wait indefinitely. Fix this by
putting an upper bound to sleep.
Link: https://lore.kernel.org/r/20190912180918.6436-3-hmadhani@marvell.com
Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
There are instances, though rare, where a LOGO request cannot be sent out
and the thread in free session done can wait indefinitely. Fix this by
putting an upper bound to sleep.
Link: https://lore.kernel.org/r/20190912180918.6436-3-hmadhani@marvell.com
Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/qla2xxx/qla_target.c | patch | blob | history |
index 7a1cc0b25e594424fbb2c9a38334f26f6f161f09..d6dc320f81a7a0281ca61ccd9d7ecafb1064c50e 100644 (file)
if (logout_started) {
bool traced = false;
+ u16 cnt = 0;
while (!READ_ONCE(sess->logout_completed)) {
if (!traced) {
traced = true;
}
msleep(100);
+ cnt++;
+ if (cnt > 200)
+ break;
}
ql_dbg(ql_dbg_disc, vha, 0xf087,