]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: reduce context switches for synchronous buffered I/O
authorChristoph Hellwig <hch@lst.de>
Sun, 12 Jan 2025 09:33:05 +0000 (10:33 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 13 Jan 2025 04:17:38 +0000 (05:17 +0100)
commite42361981d00b87fa9dd55eee975e3b3257a047f
treec4a7941f68a44ba01e7241e7722ac094a1780a52
parent832b4e5654081d39132fb8bb64f2793b6399c47e
xfs: reduce context switches for synchronous buffered I/O

Currently all metadata I/O completions happen in the m_buf_workqueue
workqueue.  But for synchronous I/O (i.e. all buffer reads) there is no
need for that, as there always is a called in process context that is
waiting for the I/O.  Factor out the guts of xfs_buf_ioend into a
separate helper and call it from xfs_buf_iowait to avoid a double
an extra context switch to the workqueue.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_buf.c