]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit408c5774bea7fd5d1e0fd6b91f8c01d5779977b2
tree75b4523f9dc5725dcef0150a487d27303058b259
parentc41485517608cb40e91fd5a0e7cf5c557faa762a
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