iscsi_shutdown_post: do nothing if panic-ing

There is nothing that that routine should or could really do in that
context.

Reported by:	Ben RUBSON <ben.rubson@gmail.com>
MFC after:	1 week
This commit is contained in:
Andriy Gapon 2017-10-24 14:59:31 +00:00
parent 42b22a3e74
commit e54fb4ff8c

View File

@ -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