Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/iscsi unreference session only for responses to SCSI...
details: https://anonhg.NetBSD.org/src/rev/1f2819f1ef5d
branches: trunk
changeset: 357917:1f2819f1ef5d
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Dec 03 07:24:47 2017 +0000
description:
unreference session only for responses to SCSI commands.
diffstat:
sys/dev/iscsi/iscsi_main.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r edebe9171a94 -r 1f2819f1ef5d sys/dev/iscsi/iscsi_main.c
--- a/sys/dev/iscsi/iscsi_main.c Sun Dec 03 07:23:45 2017 +0000
+++ b/sys/dev/iscsi/iscsi_main.c Sun Dec 03 07:24:47 2017 +0000
@@ -559,6 +559,7 @@
DEB(9, ("iscsi_done\n"));
if (xs != NULL) {
+ ccb->xs = NULL;
xs->resid = ccb->residual;
switch (ccb->status) {
@@ -596,14 +597,14 @@
break;
}
+ unref_session(ccb->session);
+
DEB(99, ("Calling scsipi_done (%p), err = %d\n", xs, xs->error));
scsipi_done(xs);
DEB(99, ("scsipi_done returned\n"));
} else {
DEBOUT(("ISCSI: iscsi_done CCB %p without XS\n", ccb));
}
-
- unref_session(ccb->session);
}
SYSCTL_SETUP(sysctl_iscsi_setup, "ISCSI subtree setup")
Home |
Main Index |
Thread Index |
Old Index