git: fb419e0ffb28 - stable/13 - Fix initiator panic after 6895f89fe54e.
Alexander Motin
mav at FreeBSD.org
Mon Mar 15 02:39:57 UTC 2021
The branch stable/13 has been updated by mav:
URL: https://cgit.FreeBSD.org/src/commit/?id=fb419e0ffb282ea79c28621769ade3f85424bfaa
commit fb419e0ffb282ea79c28621769ade3f85424bfaa
Author: Alexander Motin <mav at FreeBSD.org>
AuthorDate: 2021-03-02 21:07:22 +0000
Commit: Alexander Motin <mav at FreeBSD.org>
CommitDate: 2021-03-15 02:35:47 +0000
Fix initiator panic after 6895f89fe54e.
There are sessions without socket that are not disconnecting yet.
MFC after: 3 weeks
(cherry picked from commit 06e9c710998b83a3be21f7f264187fff5d590bc3)
---
sys/dev/iscsi/icl_soft.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/sys/dev/iscsi/icl_soft.c b/sys/dev/iscsi/icl_soft.c
index c66d8ccdb5fd..c64f0cfde71b 100644
--- a/sys/dev/iscsi/icl_soft.c
+++ b/sys/dev/iscsi/icl_soft.c
@@ -1364,9 +1364,11 @@ icl_soft_conn_close(struct icl_conn *ic)
ICL_CONN_LOCK(ic);
if (!ic->ic_disconnecting) {
so = ic->ic_socket;
- SOCKBUF_LOCK(&so->so_rcv);
+ if (so)
+ SOCKBUF_LOCK(&so->so_rcv);
ic->ic_disconnecting = true;
- SOCKBUF_UNLOCK(&so->so_rcv);
+ if (so)
+ SOCKBUF_UNLOCK(&so->so_rcv);
}
while (ic->ic_receive_running || ic->ic_send_running) {
cv_signal(&ic->ic_receive_cv);
More information about the dev-commits-src-all
mailing list