[PATCH -next] iomap: fix inline data on buffered read
Bo Liu (刘波)-浪潮信息
liubo03 at inspur.com
Wed Mar 19 17:40:06 AEDT 2025
>Previously, iomap_readpage_iter() returning 0 would break out of the loops
of
>iomap_readahead_iter(), which is what iomap_read_inline_data() relies on.
>
>However, commit d9dc477ff6a2 ("iomap: advance the iter directly on buffered
>read") changes this behavior without calling iomap_iter_advance(), which
>causes EROFS to get stuck in iomap_readpage_iter().
>
>It seems iomap_iter_advance() cannot be called in
>iomap_read_inline_data() because of the iomap_write_begin() path, so handle
>this in iomap_readpage_iter() instead.
>
>Reported-by: Bo Liu <liubo03 at inspur.com>
>Fixes: d9dc477ff6a2 ("iomap: advance the iter directly on buffered read")
>Cc: Brian Foster <bfoster at redhat.com>
>Cc: Christoph Hellwig <hch at lst.de>
>Cc: "Darrick J. Wong" <djwong at kernel.org>
>Cc: Christian Brauner <brauner at kernel.org>
>Signed-off-by: Gao Xiang <hsiangkao at linux.alibaba.com>
Tested-by: Bo Liu <liubo03 at inspur.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3777 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linux-erofs/attachments/20250319/ba331257/attachment.p7s>
More information about the Linux-erofs
mailing list