ceph: eliminate session->s_gen_ttl_lock
authorJeff Layton <jlayton@kernel.org>
Fri, 4 Jun 2021 16:03:09 +0000 (12:03 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 28 Jun 2021 22:15:52 +0000 (00:15 +0200)
commit52d60f8e18b855d67ecdc4fa34ae1b894d36c7b9
tree5cd52b763fe50a2fafbf775519803e029ee6bb2b
parent7e65624d32b6e0429b1d3559e5585657f34f74a1
ceph: eliminate session->s_gen_ttl_lock

Turn s_cap_gen field into an atomic_t, and just rely on the fact that we
hold the s_mutex when changing the s_cap_ttl field.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Luis Henriques <lhenriques@suse.de>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c
fs/ceph/dir.c
fs/ceph/inode.c
fs/ceph/mds_client.c
fs/ceph/mds_client.h