Re: [PATCH -next] hostfs: Convert hostfs_writepage to use folio

2024-09-12 Thread Matthew Wilcox
On Thu, Sep 12, 2024 at 08:22:48PM +0200, Richard Weinberger wrote: > - Ursprüngliche Mail - > > Von: "Li Zetao" > > An: "richard" , "anton ivanov" > > , "Johannes Berg" > > > > CC: lizet...@huawei.com, "linux-um" , > > "linux-kernel" > > Gesendet: Dienstag, 20. August 2024 04:50:45 >

Re: [PATCH -next] hostfs: Convert hostfs_writepage to use folio

2024-09-12 Thread Richard Weinberger
- Ursprüngliche Mail - > Von: "Li Zetao" > An: "richard" , "anton ivanov" > , "Johannes Berg" > > CC: lizet...@huawei.com, "linux-um" , > "linux-kernel" > Gesendet: Dienstag, 20. August 2024 04:50:45 > Betreff: [PATCH -next] hostfs: Convert hostfs_writepage to use folio > convert to u

Re: [PATCH] um: Fix the return value of elf_core_copy_task_fpregs

2024-09-12 Thread Richard Weinberger
- Ursprüngliche Mail - > Von: "Tiwei Bie" > An: "richard" , "anton ivanov" > , "Johannes Berg" > > CC: "linux-um" , "linux-kernel" > , "Tiwei Bie" > > Gesendet: Mittwoch, 28. August 2024 15:51:40 > Betreff: [PATCH] um: Fix the return value of elf_core_copy_task_fpregs > This function

Re: [PATCH] um: add RCU syscall hack for time-travel

2024-09-12 Thread Richard Weinberger
On Fri, Aug 30, 2024 at 5:38 PM Benjamin Berg wrote: > > From: Benjamin Berg > > In time-travel mode userspace can do a lot of work without any time > passing. Unfortunately, this can result in OOM situations as the RCU > core code will never be run. > > Work around that by kicking the RCU using

Re: [PATCH -next] hostfs: Convert hostfs_writepage to use folio

2024-09-12 Thread Richard Weinberger
- Ursprüngliche Mail - > Von: "Matthew Wilcox" >> > - buffer = kmap_local_page(page); >> > + buffer = kmap_local_folio(folio, 0); > > These two lines assume that hostfs remains a non-large-folio filesystem. > I'm not sure what the plans are for hostfs. Somewhere deep on my TODO are pla

Re: [PATCH] um: Fix the return value of elf_core_copy_task_fpregs

2024-09-12 Thread Tiwei Bie
On 2024/9/13 02:51, Richard Weinberger wrote: > - Ursprüngliche Mail - >> Von: "Tiwei Bie" >> An: "richard" , "anton ivanov" >> , "Johannes Berg" >> >> CC: "linux-um" , "linux-kernel" >> , "Tiwei Bie" >> >> Gesendet: Mittwoch, 28. August 2024 15:51:40 >> Betreff: [PATCH] um: Fix the re

[PATCH v2] um: Fix the return value of elf_core_copy_task_fpregs

2024-09-12 Thread Tiwei Bie
This function is expected to return a boolean value, which should be true on success and false on failure. Fixes: d1254b12c93e ("uml: fix x86_64 core dump crash") Signed-off-by: Tiwei Bie --- v2: - Drop the unnecessary new variable (suggested by Richard Weinberger); arch/um/kernel/process.c | 2