]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: add infrastructure for waiting for async create to complete
authorJeff Layton <jlayton@kernel.org>
Tue, 14 Jan 2020 20:06:40 +0000 (15:06 -0500)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 30 Mar 2020 10:42:41 +0000 (12:42 +0200)
commit3875e3232d3e12fcedeeb172c75541661265117e
treee6b1a73c5b85b4603f5c328e97397265f84d3c6a
parent59c55e5a8d8ec67e5fe45b832e6600ab6920f050
ceph: add infrastructure for waiting for async create to complete

When we issue an async create, we must ensure that any later on-the-wire
requests involving it wait for the create reply.

Expand i_ceph_flags to be an unsigned long, and add a new bit that
MDS requests can wait on. If the bit is set in the inode when sending
caps, then don't send it and just return that it has been delayed.

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
fs/ceph/dir.c
fs/ceph/mds_client.c
fs/ceph/mds_client.h
fs/ceph/super.h