commit | e362c317ba76c9d397238737deef952187a21395 | [log] [tgz] |
---|---|---|
author | Bart Van Assche <bart.vanassche@sandisk.com> | Fri Nov 11 17:05:27 2016 -0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Jan 06 10:40:15 2017 +0100 |
tree | 034b5468ac04b334b1a040cf8069e28e6503b6a3 | |
parent | 2c017f77e13d4325d8739fc9ed7ed2c3629da845 [diff] |
dm rq: fix a race condition in rq_completed() commit d15bb3a6467e102e60d954aadda5fb19ce6fd8ec upstream. It is required to hold the queue lock when calling blk_run_queue_async() to avoid that a race between blk_run_queue_async() and blk_cleanup_queue() is triggered. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>