mtip32xx: abstract out "are any commands active" helper
authorJens Axboe <axboe@fb.com>
Fri, 28 Apr 2017 13:54:06 +0000 (07:54 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 28 Apr 2017 16:59:04 +0000 (10:59 -0600)
commitbdfd3bfe03eb4ac4acabf35194e2d6b60036c120
tree2a33bc04bfd3453516a434615ed1e6f04fbf451a
parent833f83c7734f54f3c95a1aa8d762d3f8800ea3f2
mtip32xx: abstract out "are any commands active" helper

This is a prep patch for backoff in ->queue_rq() for non-ncq commands.

Reviewed-by: Bart Van Assche <Bart.VanAssche@sandisk.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/mtip32xx/mtip32xx.c