]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: libiscsi: Move ehwait initialization to iscsi_session_setup()
authorDing Hui <dinghui@sangfor.com.cn>
Sat, 11 Sep 2021 13:51:59 +0000 (21:51 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 14 Sep 2021 04:02:45 +0000 (00:02 -0400)
commit266edbc539e6c803e0569f96f06fb745abda7f30
tree49becf93f5fd2e83ba3ff3297c6419136e508a71
parent0fb3262f66ea45e7359fe9cf5e89c9c25215ea6b
scsi: libiscsi: Move ehwait initialization to iscsi_session_setup()

Commit bd3d031216c2 ("scsi: iscsi: Fix conn use after free during resets")
moved member ehwait from 'conn' to 'session', but left the initialization
of ehwait in iscsi_conn_setup().

Although a session can only have 1 conn currently, it is better to
initialize ehwait in iscsi_session_setup() in case we implement handling
multiple conns in the future.

Link: https://lore.kernel.org/r/20210911135159.20543-1-dinghui@sangfor.com.cn
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Ding Hui <dinghui@sangfor.com.cn>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/libiscsi.c