linux_dsm_epyc7002/fs/nfs
Al Viro c64cd6e34e reimplement path_mountpoint() with less magic
... and get rid of a bunch of bugs in it.  Background:
the reason for path_mountpoint() is that umount() really doesn't
want attempts to revalidate the root of what it's trying to umount.
The thing we want to avoid actually happen from complete_walk();
solution was to do something parallel to normal path_lookupat()
and it both went overboard and got the boilerplate subtly
(and not so subtly) wrong.

A better solution is to do pretty much what the normal path_lookupat()
does, but instead of complete_walk() do unlazy_walk().  All it takes
to avoid that ->d_weak_revalidate() call...  mountpoint_last() goes
away, along with everything it got wrong, and so does the magic around
LOOKUP_NO_REVAL.

Another source of bugs is that when we traverse mounts at the final
location (and we need to do that - umount . expects to get whatever's
overmounting ., if any, out of the lookup) we really ought to take
care of ->d_manage() - as it is, manual umount of autofs automount
in progress can lead to unpleasant surprises for the daemon.  Easily
solved by using handle_lookup_down() instead of follow_mount().

Tested-by: Ian Kent <raven@themaw.net>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2020-01-15 01:36:06 -05:00
..
blocklayout
filelayout
flexfilelayout
cache_lib.c
cache_lib.h
callback_proc.c NFSv4: nfs4_callback_getattr() should ignore revoked delegations 2019-11-03 21:28:45 -05:00
callback_xdr.c NFSv4: NFSv4 callbacks also support 64-bit timestamps 2019-11-03 21:28:44 -05:00
callback.c
callback.h NFSv4: NFSv4 callbacks also support 64-bit timestamps 2019-11-03 21:28:44 -05:00
client.c NFSv4.1: Don't rebind to the same source port when reconnecting to the server 2019-11-03 21:28:45 -05:00
delegation.c NFSv4: Handle NFS4ERR_OLD_STATEID in delegreturn 2019-11-03 21:28:46 -05:00
delegation.h NFSv4: Revoke the delegation on success in nfs4_delegreturn_done() 2019-11-03 21:28:46 -05:00
dir.c
direct.c NFS: Remove redundant mirror tracking in O_DIRECT 2019-10-09 11:45:59 -04:00
dns_resolve.c
dns_resolve.h
export.c NFS: Add a tracepoint in nfs_fh_to_dentry() 2019-11-03 21:28:46 -05:00
file.c NFS: Return -ETXTBSY when attempting to write to a swapfile 2019-11-18 10:43:24 +01:00
fscache-index.c
fscache.c
fscache.h
getroot.c
inode.c NFS: Convert struct nfs_fattr to use struct timespec64 2019-11-03 21:28:44 -05:00
internal.h NFS: Convert struct nfs_fattr to use struct timespec64 2019-11-03 21:28:44 -05:00
io.c
iostat.h
Kconfig
Makefile
mount_clnt.c
namespace.c NFS: If nfs_mountpoint_expiry_timeout < 0, do not expire submounts 2019-11-03 21:28:44 -05:00
netns.h
nfs2super.c
nfs2xdr.c NFSv2: Clean up timespec encode 2019-11-03 21:28:44 -05:00
nfs3_fs.h
nfs3acl.c
nfs3client.c NFS/pnfs: Separate NFSv3 DS and MDS traffic 2019-11-03 21:28:45 -05:00
nfs3proc.c
nfs3super.c
nfs3xdr.c NFSv3: Clean up timespec encode 2019-11-03 21:28:44 -05:00
nfs4_fs.h NFS4: Trace lock reclaims 2019-11-18 11:04:32 +01:00
nfs4client.c Merge branch 'linux-ssc-for-5.5' 2019-11-06 08:55:23 -05:00
nfs4file.c NFSv4.2 fix memory leak in nfs42_ssc_open 2019-11-18 10:50:41 +01:00
nfs4getroot.c
nfs4idmap.c
nfs4idmap.h
nfs4namespace.c
nfs4proc.c NFSv4: add declaration of current_stateid 2019-11-18 10:36:45 +01:00
nfs4renewd.c
nfs4session.c
nfs4session.h
nfs4state.c NFS4: Trace lock reclaims 2019-11-18 11:04:32 +01:00
nfs4super.c NFS: Rename nfs_inode_return_delegation_noreclaim() 2019-11-03 21:28:45 -05:00
nfs4sysctl.c
nfs4trace.c
nfs4trace.h NFS4: Trace lock reclaims 2019-11-18 11:04:32 +01:00
nfs4xdr.c Merge branch 'linux-ssc-for-5.5' 2019-11-06 08:55:23 -05:00
nfs42.h NFS based on file size issue sync copy or fallback to generic copy offload 2019-10-09 12:06:22 -04:00
nfs42proc.c NFSv4: Make _nfs42_proc_copy_notify() static 2019-11-18 10:47:38 +01:00
nfs42xdr.c NFS: add ca_source_server<> to COPY 2019-10-09 12:05:49 -04:00
nfs.h
nfsroot.c
nfstrace.c
nfstrace.h reimplement path_mountpoint() with less magic 2020-01-15 01:36:06 -05:00
pagelist.c
pnfs_dev.c
pnfs_nfs.c
pnfs.c NFSv4: add declaration of current_stateid 2019-11-18 10:36:45 +01:00
pnfs.h
proc.c
read.c
super.c NFS: remove unneeded semicolon 2019-11-18 10:37:58 +01:00
symlink.c
sysctl.c
sysfs.c fs: nfs: sysfs: Remove NULL check before kfree 2019-11-18 10:38:04 +01:00
sysfs.h
unlink.c
write.c