Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175804510
D58691.id183514.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
508 B
Referenced Files
None
Subscribers
None
D58691.id183514.diff
View Options
diff --git a/sys/fs/autofs/autofs.c b/sys/fs/autofs/autofs.c
--- a/sys/fs/autofs/autofs.c
+++ b/sys/fs/autofs/autofs.c
@@ -512,8 +512,16 @@
const char *component, int componentlen)
{
int error;
+ struct mount *mp;
+ mp = anp->an_mount->am_mp;
for (;;) {
+ MNT_ILOCK(mp);
+ if ((mp->mnt_kern_flag & MNTK_UNMOUNT) != 0) {
+ MNT_IUNLOCK(mp);
+ return (EBUSY);
+ }
+ MNT_IUNLOCK(mp);
error = autofs_trigger_one(anp, component, componentlen);
if (error == 0) {
anp->an_retries = 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 14, 12:10 PM (6 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36152067
Default Alt Text
D58691.id183514.diff (508 B)
Attached To
Mode
D58691: autofs: don't trigger autofs request when filesystem is being unmounted
Attached
Detach File
Event Timeline
Log In to Comment