OSDN Git Service

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)
committerMike Snitzer <snitzer@redhat.com>
Mon, 14 Nov 2016 20:17:50 +0000 (15:17 -0500)
commitd15bb3a6467e102e60d954aadda5fb19ce6fd8ec
tree5499a3ea35eceb92c936ff53679ea8d56b294920
parent2e8ed71102ff8fe3919dd3a2d73ac4da72686efc
dm rq: fix a race condition in rq_completed()

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.

Cc: stable@vger.kernel.org
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-rq.c