Page MenuHomeFreeBSD

D42342.diff
No OneTemporary

D42342.diff

diff --git a/sys/dev/iscsi/iscsi.c b/sys/dev/iscsi/iscsi.c
--- a/sys/dev/iscsi/iscsi.c
+++ b/sys/dev/iscsi/iscsi.c
@@ -44,6 +44,7 @@
#include <sys/mbuf.h>
#include <sys/mutex.h>
#include <sys/module.h>
+#include <sys/proc.h>
#include <sys/reboot.h>
#include <sys/socket.h>
#include <sys/sockopt.h>
@@ -2680,11 +2681,12 @@
}
static void
-iscsi_shutdown_pre(struct iscsi_softc *sc)
+iscsi_shutdown_pre(struct iscsi_softc *sc, int howto)
{
struct iscsi_session *is;
- if (!fail_on_shutdown)
+ if (!fail_on_shutdown || (howto & RB_NOSYNC) != 0 ||
+ SCHEDULER_STOPPED())
return;
/*

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 19, 9:01 AM (21 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14713832
Default Alt Text
D42342.diff (604 B)

Event Timeline