Thread (28 messages) 28 messages, 3 authors, 2021-03-17

Re: [PATCH 1/7] Revert "qla2xxx: Make sure that aborted commands are freed"

From: Bart Van Assche <bvanassche@acm.org>
Date: 2021-03-16 20:37:19

On 3/16/21 1:25 AM, Daniel Wagner wrote:
On Mon, Mar 15, 2021 at 08:56:49PM -0700, Bart Van Assche wrote:
quoted
Calling vha->hw->tgt.tgt_ops->free_cmd() from qlt_xmit_response() is wrong
since the command for which a response is sent must remain valid until the
SCSI target core calls .release_cmd().
The commit message from 0dcec41acb85 ("scsi: qla2xxx: Make sure that
aborted commands are freed") says 'avoids that the code for removing a
session hangs due to commands that do not make progress'.

As this patch reverts the change, is the problem mentioned gone? Did
some other change fix it? Just wondering.
Hi Daniel,

Commit 0dcec41acb85 was the result of source reading. The changes made
by this patch in qlt_xmit_response() are wrong and may lead to a kernel
crash. Since triggering the other code paths that are modified by that
patch, I'd like to revert that patch in its entirety.

Thanks,

Bart.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help