diff options
author | 2020-04-28 13:27:54 +0200 | |
---|---|---|
committer | 2020-04-29 09:33:26 -0600 | |
commit | 760f83ea63a7b2c12b3b1e656b24cbb880b6b814 (patch) | |
tree | d66373dc8dac91571a6ff854e4b6eedc7faeb69f /include/linux/blk_types.h | |
parent | block: improve the submit_bio and generic_make_request documentation (diff) | |
download | wireguard-linux-760f83ea63a7b2c12b3b1e656b24cbb880b6b814.tar.xz wireguard-linux-760f83ea63a7b2c12b3b1e656b24cbb880b6b814.zip |
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>
Diffstat (limited to 'include/linux/blk_types.h')
0 files changed, 0 insertions, 0 deletions