projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bbf902
)
block: remove unnecessary check in blk_unfreeze_check_owner()
author
Ming Lei
<ming.lei@redhat.com>
Wed, 27 Nov 2024 13:51:27 +0000
(21:51 +0800)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 23 Dec 2024 15:17:22 +0000
(08:17 -0700)
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>
block/blk-mq.c
patch
|
blob
|
blame
|
history
diff --git
a/block/blk-mq.c
b/block/blk-mq.c
index 8ac19d4ae3c0ae5c50149b1b04302a158dd35aab..60f457f62913fcb147cb68820871c54e529b3e88 100644
(file)
--- 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) {