]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: fix race in IO start accounting
authorJens Axboe <axboe@fb.com>
Fri, 9 May 2014 20:54:08 +0000 (14:54 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 9 May 2014 20:54:08 +0000 (14:54 -0600)
commit0c6c735a1e344fe2b1804bfee6721036830e0e87
tree021ac302ac256c4fd3a03b740a0c823e69644b89
parent6e0166927f3308cca2b39e3a4d464ed967669802
blk-mq: fix race in IO start accounting

Commit f0d5dcf0 opened up a small race where we could attempt to
account IO completion on a request, racing with IO start accounting.
Fix this up by ensuring that we've accounted for IO start before
inserting the request.

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