summaryrefslogtreecommitdiff
path: root/block/blk-mq.c
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2024-11-27 21:51:27 +0800
committerJens Axboe <axboe@kernel.dk>2024-12-23 08:17:22 -0700
commitaff09dc1fd3a165289011ab23cc3b46978ec741c (patch)
tree309c09ac7b20dd668a636af7c09f3cd4904b205d /block/blk-mq.c
parent4bbf9020becbfd8fc2c3da790855b7042fad455b (diff)
block: remove unnecessary check in blk_unfreeze_check_owner()
The following check of 'q->mq_freeze_owner != current' covers the previous one, so remove the unnecessary check. Signed-off-by: Ming Lei <ming.lei@redhat.com> Link: https://lore.kernel.org/r/20241127135133.3952153-2-ming.lei@redhat.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r--block/blk-mq.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 8ac19d4ae3c0..60f457f62913 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -142,8 +142,6 @@ static bool blk_freeze_set_owner(struct request_queue *q,
/* verify the last unfreeze in owner context */
static bool blk_unfreeze_check_owner(struct request_queue *q)
{
- if (!q->mq_freeze_owner)
- return false;
if (q->mq_freeze_owner != current)
return false;
if (--q->mq_freeze_owner_depth == 0) {