block: use an on-stack bio in blkdev_issue_flush
authorChristoph Hellwig <hch@lst.de>
Tue, 26 Jan 2021 14:52:35 +0000 (15:52 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 27 Jan 2021 16:51:48 +0000 (09:51 -0700)
commitc6bf3f0e25f4c0f0ecce6cf8d1c589bd9d74d3cf
tree75b4523f9dc5725dcef0150a487d27303058b259
parent3175199ab0ac8c874ec25c6bf169f74888917435
block: use an on-stack bio in blkdev_issue_flush

There is no point in allocating memory for a synchronous flush.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Acked-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
23 files changed:
block/blk-flush.c
drivers/md/dm-zoned-metadata.c
drivers/md/raid5-ppl.c
drivers/nvme/target/io-cmd-bdev.c
fs/block_dev.c
fs/exfat/file.c
fs/ext4/fast_commit.c
fs/ext4/fsync.c
fs/ext4/ialloc.c
fs/ext4/super.c
fs/fat/file.c
fs/hfsplus/inode.c
fs/hfsplus/super.c
fs/jbd2/checkpoint.c
fs/jbd2/commit.c
fs/jbd2/recovery.c
fs/libfs.c
fs/nilfs2/the_nilfs.h
fs/ocfs2/file.c
fs/reiserfs/file.c
fs/xfs/xfs_super.c
fs/zonefs/super.c
include/linux/blkdev.h