mtip32xx: quiesce request queues to make sure no submissions are inflight
authorSagi Grimberg <sagi@grimberg.me>
Tue, 4 Jul 2017 07:00:41 +0000 (10:00 +0300)
committerSagi Grimberg <sagi@grimberg.me>
Thu, 6 Jul 2017 06:49:18 +0000 (09:49 +0300)
commit436c15ab6596b12cfee7618ecaa69a4341ac3c51
tree7069612726981086d6b2caaa5db671a236d9faef
parentb52c2e92546ee794a5bbab4d8ea435c1de85a8cb
mtip32xx: quiesce request queues to make sure no submissions are inflight

Unlike blk_mq_stop_hw_queues, blk_mq_quiesce_queue respects the
submission path rcu grace. quiesce the queue before iterating
on live tags, or performing device io quiescing.

While were at it, verify that the request started in mtip_abort_cmd
amd mtip_queue_cmd tag iteration calls.

Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/block/mtip32xx/mtip32xx.c