On Fri, Apr 11, 2025 at 08:37:51AM -0600, Jens Axboe wrote: > On 4/11/25 7:48 AM, Christian Brauner wrote: > > Seems fine. Although it has some potential for abuse. So maybe a > > VFS_WARN_ON_ONCE() that PF_NO_TASKWORK is only used with PF_KTHREAD > > would make sense. > > Can certainly add that. You'd want that before the check for > in_interrupt and PF_NO_TASKWORK? Something ala > > /* PF_NO_TASKWORK should only be used with PF_KTHREAD */ > VFS_WARN_ON_ONCE((task->flags & PF_NO_TASKWORK) && !(task->flags & PF_KTHREAD)); > > ? Yeah, sounds good!