diff options
| author | Andriy Gapon <avg@FreeBSD.org> | 2017-10-24 14:59:31 +0000 |
|---|---|---|
| committer | Andriy Gapon <avg@FreeBSD.org> | 2017-10-24 14:59:31 +0000 |
| commit | e54fb4ff8c74ba6e60a89b7bf03cbed819a91f67 (patch) | |
| tree | ecf02855a76d13debcc8200aeb8efce283faa5c9 /sys | |
| parent | 42b22a3e74eb9eada37e71c226900e1a5c18e195 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/iscsi/iscsi.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/iscsi/iscsi.c b/sys/dev/iscsi/iscsi.c index d7a36c6d2655..673af553b658 100644 --- a/sys/dev/iscsi/iscsi.c +++ b/sys/dev/iscsi/iscsi.c @@ -2458,8 +2458,10 @@ static void iscsi_shutdown_post(struct iscsi_softc *sc) { - ISCSI_DEBUG("removing all sessions due to shutdown"); - iscsi_terminate_sessions(sc); + if (panicstr == NULL) { + ISCSI_DEBUG("removing all sessions due to shutdown"); + iscsi_terminate_sessions(sc); + } } static int |
