]> git.karo-electronics.de Git - linux-beck.git/commit
dm rq: fix a race condition in rq_completed()
authorBart Van Assche <bart.vanassche@sandisk.com>
Sat, 12 Nov 2016 01:05:27 +0000 (17:05 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jan 2017 09:40:15 +0000 (10:40 +0100)
commite362c317ba76c9d397238737deef952187a21395
tree034b5468ac04b334b1a040cf8069e28e6503b6a3
parent2c017f77e13d4325d8739fc9ed7ed2c3629da845
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>
drivers/md/dm-rq.c