]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: must hold snap_rwsem when filling inode for async create
authorJeff Layton <jlayton@kernel.org>
Tue, 1 Jun 2021 13:40:25 +0000 (09:40 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 22 Jun 2021 11:53:28 +0000 (13:53 +0200)
commit187aca2a5864d5b444231205db0e141fcbeb38bb
tree110d0dc1ca33573d9a58637cabb45b0bdd474550
parentc6de18cbc82363742b3e5ae9084ce57f72e214f0
ceph: must hold snap_rwsem when filling inode for async create

...and add a lockdep assertion for it to ceph_fill_inode().

Cc: stable@vger.kernel.org # v5.7+
Fixes: 919dc421f8efd ("ceph: attempt to do async create when possible")
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/file.c
fs/ceph/inode.c