summaryrefslogtreecommitdiffstats
path: root/src/mds/Mutation.h
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2020-03-27 12:26:09 +0100
committerYan, Zheng <zyan@redhat.com>2020-07-01 11:01:53 +0200
commit975d9ba9404c97ec0888edaff561e70202a89575 (patch)
tree6f69364ab3a3a1092b00228a5193383cc34f3809 /src/mds/Mutation.h
parentmds: move MDRequestImpl::batch_reqs into Batch_Getattr_Lookup (diff)
downloadceph-975d9ba9404c97ec0888edaff561e70202a89575.tar.xz
ceph-975d9ba9404c97ec0888edaff561e70202a89575.zip
mds: add request to batch_op before taking auth pins and locks
MDS does not dispatch non-head requests in batch_op. So non-head requests in batch_op should not hold any authpins and locks. Otherwise head request may wait for these authpins/locks. Fixes: https://tracker.ceph.com/issues/44785 Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Diffstat (limited to 'src/mds/Mutation.h')
-rw-r--r--src/mds/Mutation.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mds/Mutation.h b/src/mds/Mutation.h
index 9b44ed088dc..4e8454e1d7d 100644
--- a/src/mds/Mutation.h
+++ b/src/mds/Mutation.h
@@ -384,7 +384,7 @@ struct MDRequestImpl : public MutationImpl {
bool is_queued_for_replay() const;
int compare_paths();
- bool is_batch_op();
+ bool can_batch();
bool is_batch_head() {
return batch_op_map != nullptr;
}