commit | 69eb3e60e099a6117fc754e70eedd504685326ad | [log] [tgz] |
---|---|---|
author | Bart Van Assche <bart.vanassche@sandisk.com> | Wed Aug 31 15:18:11 2016 -0700 |
committer | Mike Snitzer <snitzer@redhat.com> | Thu Sep 01 17:29:36 2016 -0400 |
tree | b044f9eecbabe9ef26cbdc34dec69044fd097c3c | |
parent | ca0fe297270f71688fa48887665588f369fc3662 [diff] |
dm: Fix two race conditions related to stopping and starting queues Ensure that all ongoing dm_mq_queue_rq() and dm_mq_requeue_request() calls have stopped before setting the "queue stopped" flag. This allows to remove the "queue stopped" test from dm_mq_queue_rq() and dm_mq_requeue_request(). Use BLK_MQ_S_STOPPED instead of QUEUE_FLAG_STOPPED. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>