Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102879699
D42342.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
604 B
Referenced Files
None
Subscribers
None
D42342.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D42342: iscsi: adjust shutdown_pre_sync handler
Attached
Detach File
Event Timeline
Log In to Comment