]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: remove is_root indication on quiesce_inode op
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 19 Mar 2024 21:08:54 +0000 (17:08 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 22 Mar 2024 15:38:03 +0000 (11:38 -0400)
This is no longer necessary with the change to a LocalLock quiescelock.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 667c9a9c5af8d342ce6da5e942efb219b67d980b)

src/mds/MDCache.cc

index d62d93e16fd889889eeaaa674719d6f8d110fa74..127721f085bbc3d41c0944fa7e571fc5f56bc83c 100644 (file)
@@ -13571,8 +13571,6 @@ void MDCache::dispatch_quiesce_inode(const MDRequestRef& mdr)
     return;
   }
 
-  [[maybe_unused]] const bool is_root = (ino == mdr->get_filepath2().get_ino());
-
   dout(20) << __func__ << " " << *mdr << " quiescing " << *in << dendl;
 
   if (quiesce_counter.get() > quiesce_threshold) {
@@ -13813,7 +13811,6 @@ void MDCache::dispatch_quiesce_path(const MDRequestRef& mdr)
   } else if (auto& qops = mdr->more()->quiesce_ops; qops.count(dirino) == 0) {
     MDRequestRef qimdr = request_start_internal(CEPH_MDS_OP_QUIESCE_INODE);
     qimdr->set_filepath(filepath(dirino));
-    qimdr->set_filepath2(filepath(dirino)); /* is_root! */
     qimdr->internal_op_finish = new C_MDS_RetryRequest(this, mdr);
     qimdr->internal_op_private = new QuiesceInodeStateRef(qis);
     qops[dirino] = qimdr->reqid;