Message ID | 20241127135133.3952153-2-ming.lei@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | block: cleanup queue freeze lockdep | expand |
diff --git a/block/blk-mq.c b/block/blk-mq.c index 270cfd9fc6b0..6af56b0e8ffd 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -141,8 +141,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) {
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> --- block/blk-mq.c | 2 -- 1 file changed, 2 deletions(-)