Page MenuHomeFreeBSD

D58691.id183514.diff
No OneTemporary

D58691.id183514.diff

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

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)

Event Timeline