]> git.ipfire.org Git - people/arne_f/kernel.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 10:16:23 +0000 (11:16 +0100)
commit454b98d3f2b57b633e7d4820fc1acbe2096f5166
treeb35c09c961081cf65a408ab2dbbc382788287564
parent26011e67339e1a7b2244077468f8413cf26e956b
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