]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
xfs: optimize bio handling in the buffer writeback path
authorChristoph Hellwig <hch@lst.de>
Tue, 5 Apr 2016 22:34:30 +0000 (08:34 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 5 Apr 2016 22:34:30 +0000 (08:34 +1000)
commit0e51a8e191dbd9b9c7b7bb0a1c28d57cd2be8e6a
tree15c9f6f5bcdcbda2978889057780ec3d6b4c9cbe
parent37992c18bba3f578860c6448b7bae18a14e535d3
xfs: optimize bio handling in the buffer writeback path

This patch implements two closely related changes:  First it embeds
a bio the ioend structure so that we don't have to allocate one
separately.  Second it uses the block layer bio chaining mechanism
to chain additional bios off this first one if needed instead of
manually accounting for multiple bio completions in the ioend
structure.  Together this removes a memory allocation per ioend and
greatly simplifies the ioend setup and I/O completion path.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_aops.c
fs/xfs/xfs_aops.h
fs/xfs/xfs_super.c