Skip to content
Commit 554c577c authored by Andreas Gruenbacher's avatar Andreas Gruenbacher
Browse files

gfs2: Prevent endless loops in gfs2_file_buffered_write



Currently, instead of performing a short write,
iomap_file_buffered_write will fail when part of its iov iterator cannot
be read.  In contrast, gfs2_file_buffered_write will loop around if it
can read part of the iov iterator, so we can end up in an endless loop.

This should be fixed in iomap_file_buffered_write (and also
generic_perform_write), but this comes a bit late in the 5.16
development cycle, so work around it in the filesystem by
trimming the iov iterator to the known-good size for now.

Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent a7ac203d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment