[PATCH] blk-mq: only iterate over inflight requests in blk_mq_tagset_busy_iter

2018-05-30 Thread Christoph Hellwig
We already check for started commands in all callbacks, but we should also protect against already completed commands. Do this by taking the checks to common code. Signed-off-by: Christoph Hellwig --- block/blk-mq-tag.c| 2 +- drivers/block/mtip32xx/mtip32xx.c | 12 ++--

Re: [PATCH] blk-mq: only iterate over inflight requests in blk_mq_tagset_busy_iter

2018-05-30 Thread Josef Bacik
On Wed, May 30, 2018 at 06:51:00PM +0200, Christoph Hellwig wrote: > We already check for started commands in all callbacks, but we should > also protect against already completed commands. Do this by taking > the checks to common code. > > Signed-off-by: Christoph Hellwig Acked-by: Josef Bacik

Re: [PATCH] blk-mq: only iterate over inflight requests in blk_mq_tagset_busy_iter

2018-05-30 Thread Jens Axboe
On 5/30/18 10:51 AM, Christoph Hellwig wrote: > We already check for started commands in all callbacks, but we should > also protect against already completed commands. Do this by taking > the checks to common code. Looks good, applied. -- Jens Axboe