On Mon, 21 Feb 2022 at 15:11, 陈立新 <clx428@xxxxxxx> wrote: > >This last is not possible, because write_cache_pages() will always > >return when it reached the end of the range and only the next > >invocation will wrap around to the zero index page. See this at the > >end of write_cache_pages(): > > > > if (wbc->range_cyclic && !done) > > done_index = 0; > I use the kernel version is 4.19.36, which it has no 64081362e8ff4587b4554087f3cfc73d3e0a4cd7 mm/page-writeback.c: fix range_cyclic writeback vs writepages deadlock patch. > I think this patch can fix this deadlock. Yes, that explains it. Thanks for investigating. Miklos