]> www.infradead.org Git - users/hch/xfsprogs.git/commit
libxfs: libxfs_buf_delwri_submit should write buffers immediately
authorDarrick J. Wong <darrick.wong@oracle.com>
Sun, 1 Mar 2020 17:33:38 +0000 (12:33 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Sun, 1 Mar 2020 17:33:38 +0000 (12:33 -0500)
commitd73b61f996a28411ebac4ace9d45d5fee9acb364
tree5ea1fd2392856d1026bf8133c0874cac4e98f25a
parentdfe209d873e7bf21f26f18ed2d44c2f65c8f651b
libxfs: libxfs_buf_delwri_submit should write buffers immediately

The whole point of libxfs_buf_delwri_submit is to submit a bunch of
buffers for write and wait for the response.  Unfortunately, while it
does mark the buffers dirty, it doesn't actually flush them and lets the
cache mru flusher do it.  This is inconsistent with the kernel API,
which actually writes the buffers and returns any IO errors.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Allison Collins <allison.henderson@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/rdwr.c
mkfs/xfs_mkfs.c