]> git.baikalelectronics.ru Git - kernel.git/commit
block: only calculate part_in_flight() once
authorJens Axboe <axboe@fb.com>
Fri, 9 May 2014 21:48:23 +0000 (15:48 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 9 May 2014 21:48:23 +0000 (15:48 -0600)
commita2cb059244a4d819679cda54e570f926c1678cf4
tree3fb2f7571884b9585783085e53578f973cf32c12
parent0c6c735a1e344fe2b1804bfee6721036830e0e87
block: only calculate part_in_flight() once

We first check if we have inflight IO, then retrieve that
same number again. Usually this isn't that costly since the
chance of having the data dirtied in between is small, but
there's no reason for calling part_in_flight() twice.

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