Re: [PATCH] don't invalidate non-directory mountpoints

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > d_invalidate allowed a non-directory mountpoint to be invalidated,
> > which is bad, since the mountpoint becomes unreachable.
> > 
> > I know it's racy wrt attaching/detaching mount, but AFAICS so is
> > everything else that unhashes the dentry.  This seems to be an
> > oversight when splitting out vfsmount_lock from dcache_lock.  To be
> > fixed.
> 
> NAK.  That's a wrong way to deal with the problem and it's much older
> than vfsmount_lock or dcache_lock (and affects directories too).

Sorry?

Directories are not invalidated if they have any other reference (like
a mount, or any subdirectories which may have mounts).

So how does it affect directories?

Miklos

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux