]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Remove useless conditon. 21766/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Wed, 2 May 2018 06:31:17 +0000 (14:31 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Wed, 2 May 2018 06:31:17 +0000 (14:31 +0800)
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/osd/OSD.cc

index 1285c22dce15b48e09fd323d48129ef595330f37..1bd49412269a6670e14a2bbeb4f0ecccb3c82251 100644 (file)
@@ -9744,9 +9744,7 @@ void OSD::ShardedOpWQ::_process(uint32_t thread_index, heartbeat_handle_d *hb)
       // raced with _wake_pg_slot or consume_map
       dout(20) << __func__ << " " << token
               << " nothing queued" << dendl;
-      if (pg) {
-       pg->unlock();
-      }
+      pg->unlock();
       sdata->shard_lock.Unlock();
       return;
     }
@@ -9755,9 +9753,7 @@ void OSD::ShardedOpWQ::_process(uint32_t thread_index, heartbeat_handle_d *hb)
               << " requeue_seq " << slot->requeue_seq << " > our "
               << requeue_seq << ", we raced with _wake_pg_slot"
               << dendl;
-      if (pg) {
-       pg->unlock();
-      }
+      pg->unlock();
       sdata->shard_lock.Unlock();
       return;
     }