On 3/5/24 9:33 AM, Christian Brauner wrote: > On Tue, 05 Mar 2024 21:33:36 +0800, Tong Tiangen wrote: >> The commit f1982740f5e7 ("iov_iter: Convert iterate*() to inline funcs") >> leads to deadloop in generic_perform_write()[1], due to return value of >> copy_page_from_iter_atomic() changed from non-zero value to zero. >> >> The code logic of the I/O performance-critical path of the iov_iter is >> mixed with machine check[2], actually, there's no need to complicate it, >> a more appropriate method is to get the error as early as possible in >> the coredump process instead of during the I/O process. In addition, >> the iov_iter performance-critical path can have clean logic. >> >> [...] > > I'll send this together with two other fixes we have pending. For what it's worth, checking the two patches, it's basically the one that Linus sent. I think it should have a From: based on that, and I also do not see Linus actually signing off on the patch, though that has been added to this one. Would probably be sane to get this one resent before applying, properly done. Missed that in the first look... -- Jens Axboe