]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: add flag to delegate an inode number for async create
authorJeff Layton <jlayton@kernel.org>
Mon, 2 Dec 2019 18:47:57 +0000 (13:47 -0500)
committerJeff Layton <jlayton@kernel.org>
Fri, 10 Jan 2020 16:51:05 +0000 (11:51 -0500)
commit19284b9f650fdc530fd59a8d323883c4c8ff96c6
treea2ecb28414f99fad1ab4464d30a6edc883eb0927
parent0e368f074b6beffdab0708842c5a7b9015707ffc
ceph: add flag to delegate an inode number for async create

In order to issue an async create request, we need to send an inode
number when we do the request, but we don't know which to which MDS
we'll be issuing the request.

Add a new r_req_flag that tells the request sending machinery to
grab an inode number from the delegated set, and encode it into the
request. If it can't get one then have it return -ECHILD. The
requestor can then reissue a synchronous request.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/ceph/inode.c
fs/ceph/mds_client.c
fs/ceph/mds_client.h