* [Bug 212007] New: wrong timeout calculation in scsi device_handler (scsi_dh_emc.c and scsi_dh_rdac.c)
@ 2021-03-01 12:49 bugzilla-daemon
2021-03-03 20:34 ` [Bug 212007] " bugzilla-daemon
0 siblings, 1 reply; 2+ messages in thread
From: bugzilla-daemon @ 2021-03-01 12:49 UTC (permalink / raw)
To: linux-scsi
https://bugzilla.kernel.org/show_bug.cgi?id=212007
Bug ID: 212007
Summary: wrong timeout calculation in scsi device_handler
(scsi_dh_emc.c and scsi_dh_rdac.c)
Product: SCSI Drivers
Version: 2.5
Kernel Version: 5.11.2 (all kernels since 4.11)
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Other
Assignee: scsi_drivers-other@kernel-bugs.osdl.org
Reporter: t.wede@kw-reneg.de
Regression: No
Created attachment 295549
--> https://bugzilla.kernel.org/attachment.cgi?id=295549&action=edit
patch to correct wrong timeout calculations in scsi device handler
scsi_dh_emc.c:
--------------
In scsi_dh_emc.c (line 34) CLARIION_TIMEOUT ist defined as (60 * HZ).
In send_trespass_cmd (lines 279 - 281) the following is calculated:
err = scsi_execute(sdev, cdb, DMA_TO_DEVICE, csdev->buffer, len, NULL,
&sshdr, CLARIION_TIMEOUT * HZ, CLARIION_RETRIES,
req_flags, 0, NULL);
The result is "(60 * HZ) * HZ".
scsi_dh_rdac.c:
---------------
In scsi_dh_rdac.c (line 55) RDAC_TIMEOUT is defined as (60 * HZ).
In send_mode_select (lines 558 - 566) the following is calculated:
if (scsi_execute(sdev, cdb, DMA_TO_DEVICE, &h->ctlr->mode_select,
data_size, NULL, &sshdr, RDAC_TIMEOUT * HZ,
RDAC_RETRIES, req_flags, 0, NULL)) {
err = mode_select_handle_sense(sdev, &sshdr);
if (err == SCSI_DH_RETRY && retry_cnt--)
goto retry;
if (err == SCSI_DH_IMM_RETRY)
goto retry;
}
The result is "(60 * HZ) * HZ".
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug 212007] wrong timeout calculation in scsi device_handler (scsi_dh_emc.c and scsi_dh_rdac.c)
2021-03-01 12:49 [Bug 212007] New: wrong timeout calculation in scsi device_handler (scsi_dh_emc.c and scsi_dh_rdac.c) bugzilla-daemon
@ 2021-03-03 20:34 ` bugzilla-daemon
0 siblings, 0 replies; 2+ messages in thread
From: bugzilla-daemon @ 2021-03-03 20:34 UTC (permalink / raw)
To: linux-scsi
https://bugzilla.kernel.org/show_bug.cgi?id=212007
Bart Van Assche (bvanassche@acm.org) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bvanassche@acm.org
--- Comment #1 from Bart Van Assche (bvanassche@acm.org) ---
Please prepare a patch and post it on the linux-scsi mailing list.
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-04 0:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-01 12:49 [Bug 212007] New: wrong timeout calculation in scsi device_handler (scsi_dh_emc.c and scsi_dh_rdac.c) bugzilla-daemon
2021-03-03 20:34 ` [Bug 212007] " bugzilla-daemon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).