]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: always complete the buffer inline in xfs_buf_submit
authorChristoph Hellwig <hch@lst.de>
Mon, 13 Jan 2025 14:12:16 +0000 (15:12 +0100)
committerCarlos Maiolino <cem@kernel.org>
Tue, 14 Jan 2025 10:38:15 +0000 (11:38 +0100)
commit819f29cc7be6a9d949e017ca3f5ccc772a80daef
tree2986d16fd852d57714196a6c80ba262a5e0e8b60
parent6dca5abb3d10e27e919e5344ac07e057f443c318
xfs: always complete the buffer inline in xfs_buf_submit

xfs_buf_submit now only completes a buffer on error, or for in-memory
buftargs.  There is no point in using a workqueue for the latter as
the completion will just wake up the caller.  Optimize this case by
avoiding the workqueue roundtrip.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Acked-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_buf.c