summaryrefslogtreecommitdiffstats
path: root/block/blk-mq-tag.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2017-01-19 07:39:17 -0700
committerJens Axboe <axboe@fb.com>2017-01-19 07:43:05 -0700
commit8cecb07d70e761eb0112f921d939b9ab2ea2171f (patch)
tree11f63e7a42625ff2d2c3dd1886e12a925d0405f1 /block/blk-mq-tag.c
parent610d886c0c22fa7504e817b6d03c402de64b0264 (diff)
downloadlinux-0-day-8cecb07d70e761eb0112f921d939b9ab2ea2171f.tar.gz
linux-0-day-8cecb07d70e761eb0112f921d939b9ab2ea2171f.tar.xz
blk-mq-tag: remove redundant check for 'data->hctx' being non-NULL
We used to pass in NULL for hctx for reserved tags, but we don't do that anymore. Hence the check for whether hctx is NULL or not is now redundant, kill it. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Fixes: a642a158aec6 ("blk-mq-tag: cleanup the normal/reserved tag allocation") Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq-tag.c')
-rw-r--r--block/blk-mq-tag.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/block/blk-mq-tag.c b/block/blk-mq-tag.c
index 9753747a34a2f..5504eb7ed10b2 100644
--- a/block/blk-mq-tag.c
+++ b/block/blk-mq-tag.c
@@ -136,11 +136,9 @@ unsigned int blk_mq_get_tag(struct blk_mq_alloc_data *data)
/*
* We're out of tags on this hardware queue, kick any
* pending IO submits before going to sleep waiting for
- * some to complete. Note that hctx can be NULL here for
- * reserved tag allocation.
+ * some to complete.
*/
- if (data->hctx)
- blk_mq_run_hw_queue(data->hctx, false);
+ blk_mq_run_hw_queue(data->hctx, false);
/*
* Retry tag allocation after running the hardware queue,