Hi Yong, On 2026/2/26 17:09, Sheng Yong wrote:
From: Sheng Yong <[email protected]>For file-backed mount, IO requests are handled by vfs_iocb_iter_read(). However, it can be interrupted by SIGKILL, returning the number of bytes actually copied. Although unused folios are zero filled, they are unexpectedly marked as uptodate. This patch addresses this by setting folios uptodate based on the actual number of bytes read for the plain backing file. And for the compressed backing file, there may not have sufficient data for decompression, in such case, the bio is marked with an error directly. Fixes: ce63cb62d794 ("erofs: support unencoded inodes for fileio") Reported-by: chenguanyou <[email protected]> Signed-off-by: Yunlei He <[email protected]> Signed-off-by: Sheng Yong <[email protected]>
Yes, it sounds possible. But can we just fail the whole I/O for both cases? In principle, we should retry the remaining I/O once more for short read, but failing the whole I/O could be one short-term solution. Thanks, Gao Xiang
