Jens Axboe 344e9ffcbd 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>
2018-11-16 08:34:06 -07:00
..
2018-04-30 11:51:39 -04:00
2018-10-25 11:17:40 -06:00
2018-10-25 11:17:40 -06:00
2016-11-01 09:43:26 -06:00
2018-11-16 08:34:06 -07:00
2018-11-16 08:34:06 -07:00
2017-06-09 09:27:32 -06:00
2018-10-11 11:36:09 -04:00
2018-06-08 11:59:51 -04:00
2018-10-18 09:41:25 -07:00
2018-11-01 19:59:53 -06:00