commit | 344e9ffcbd1898e1dc04085564a6e05c30ea8199 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Thu Nov 15 12:22:51 2018 -0700 |
committer | Jens Axboe <axboe@kernel.dk> | Fri Nov 16 08:34:06 2018 -0700 |
tree | ba71320bc66d1158790acf1cdeedd21d2da9dead | |
parent | dabcefab45d36ecb5a22f16577bb0f298876a22d [diff] |
block: add queue_is_mq() helper Various spots check for q->mq_ops being non-NULL, but provide a helper to do this instead. Where the ->mq_ops != NULL check is redundant, remove it. Since mq == rq-based now that legacy is gone, get rid of the queue_is_rq_based() and just use queue_is_mq() everywhere. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>