]> git.baikalelectronics.ru Git - kernel.git/commit
block: cleanup the memory stall accounting in submit_bio
authorChristoph Hellwig <hch@lst.de>
Tue, 28 Apr 2020 11:27:54 +0000 (13:27 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 29 Apr 2020 15:33:26 +0000 (09:33 -0600)
commit45ce35e435b3e2359cb73c76bb5ac71787612da3
treed66373dc8dac91571a6ff854e4b6eedc7faeb69f
parenta420c5e714f58c5769d78e2b39c1599a7af9d743
block: cleanup the memory stall accounting in submit_bio

Instead of a convoluted chain just check for REQ_OP_READ directly,
and keep all the memory stall code together in a single unlikely
branch.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c