]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: discard NFS_RPC_SWAPFLAGS and RPC_TASK_ROOTCREDS
authorNeilBrown <neilb@suse.de>
Sun, 6 Mar 2022 23:41:44 +0000 (10:41 +1100)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 13 Mar 2022 16:59:35 +0000 (12:59 -0400)
commit4fb3268981ea0a841f2c0c355875dfbd5e92766d
tree9b86c644f8231c079f1580cb5c8cb986778e386a
parenta45e6496ec457500096e0087820e425efcc96316
NFS: discard NFS_RPC_SWAPFLAGS and RPC_TASK_ROOTCREDS

NFS_RPC_SWAPFLAGS is only used for READ requests.
It sets RPC_TASK_SWAPPER which gives some memory-allocation priority to
requests.  This is not needed for swap READ - though it is for writes
where it is set via a different mechanism.

RPC_TASK_ROOTCREDS causes the 'machine' credential to be used.
This is not needed as the root credential is saved when the swap file is
opened, and this is used for all IO.

So NFS_RPC_SWAPFLAGS isn't needed, and as it is the only user of
RPC_TASK_ROOTCREDS, that isn't needed either.

Remove both.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/read.c
include/linux/nfs_fs.h
include/linux/sunrpc/sched.h
include/trace/events/sunrpc.h
net/sunrpc/auth.c