On Thu, 2018-11-08 at 09:06 -0700, Jens Axboe wrote: +AD4 +-static bool blk+AF8-mq+AF8-check+AF8-busy(struct blk+AF8-mq+AF8-hw+AF8-ctx +ACo-hctx, struct request +ACo-rq, +AD4 +- void +ACo-priv, bool reserved) +AD4 +-+AHs +AD4 +- /+ACo +AD4 +- +ACo If we find a request, we know the queue is busy. Return false +AD4 +- +ACo to stop the iteration. +AD4 +- +ACo-/ +AD4 +- if (rq-+AD4-q +AD0APQ hctx-+AD4-queue) +AHs +AD4 +- bool +ACo-busy +AD0 (bool +ACo) priv+ADs I think the +ACI(bool +ACo)+ACI cast can be left out. Anyway: Reviewed-by: Bart Van Assche +ADw-bvanassche+AEA-acm.org+AD4