]> 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)
commit04f4ece27fd69b29edce05d8f5202f8983ea7bdb
tree9b86c644f8231c079f1580cb5c8cb986778e386a
parentd07a6acafdfe8fd022a9ec8ae2504636d9409588
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