[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <yq18rzzztsa.fsf@ca-mkp.ca.oracle.com>
Date: Tue, 14 Sep 2021 00:05:20 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Ding Hui <dinghui@...gfor.com.cn>
Cc: lduncan@...e.com, cleech@...hat.com, jejb@...ux.ibm.com,
martin.petersen@...cle.com, michael.christie@...cle.com,
open-iscsi@...glegroups.com, linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] scsi: libiscsi: move init ehwait to
iscsi_session_setup()
Ding,
> The commit ec29d0ac29be ("scsi: iscsi: Fix conn use after free during
> resets") move member ehwait from conn to session, but left init ehwait
> in iscsi_conn_setup().
>
> Although a session can only have 1 conn currently, it is better to do
> init ehwait in iscsi_session_setup() to prevent reinit by mistake,
> also in case we can handle multiple conns in the future.
Applied to 5.16/scsi-staging, thanks!
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists