ceph: take a cred reference instead of tracking individual uid/gid
authorJeff Layton <jlayton@kernel.org>
Tue, 8 Dec 2020 16:24:09 +0000 (11:24 -0500)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 14 Dec 2020 22:21:48 +0000 (23:21 +0100)
commit7fe0cdeb0f88988dce8a77e963d15539abba1f18
tree714e88b5d4ef4d6e90b9e020e5486dcd5fe86bb4
parent0f51a983616c22a56d231950812f895e46dae256
ceph: take a cred reference instead of tracking individual uid/gid

Replace req->r_uid/r_gid with an r_cred pointer and take a reference to
that at the point where we previously would sample the two.  Use that to
populate the uid and gid in the header and release the reference when
the request is freed.

This should enable us to later add support for sending supplementary
group lists in MDS requests.

[ idryomov: break unnecessarily long lines ]

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/mds_client.c
fs/ceph/mds_client.h