Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
// 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;
}
<< " 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;
}