blk-mq: fix use-after-free of request
authorMing Lei <tom.leiming@gmail.com>
Thu, 5 Dec 2013 17:50:39 +0000 (10:50 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 5 Dec 2013 17:50:39 +0000 (10:50 -0700)
If accounting is on, we will do the IO completion accounting after
we have freed the request. Fix that by moving it sooner instead.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c

diff --cc block/blk-mq.c
Simple merge