]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ceph: fetch cap_gen under spinlock in ceph_add_cap
authorJeff Layton <jlayton@kernel.org>
Mon, 22 Jul 2019 17:12:01 +0000 (13:12 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 16 Sep 2019 10:06:24 +0000 (12:06 +0200)
commit606d102327a45a49d293557527802ee7fbfd7af1
treefe5f8976a9670517eaaeba958845392a21da94ba
parent5de16b30d3121eca26c8c898cc0eff090e21dda6
ceph: fetch cap_gen under spinlock in ceph_add_cap

It's protected by the s_gen_ttl_lock, so we should fetch under it
and ensure that we're using the same generation in both places.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c