On Tue, Aug 19, 2025 at 11:14:41AM +0200, Christian Brauner wrote: > It kind of feels like that f_iocb_flags should be changed so that > subsystems like block can just raise some internal flags directly > instead of grabbing a f_mode flag everytime they need to make some > IOCB_* flag conditional on the file. That would mean changing the > unconditional assigment to file->f_iocb_flags to a |= to not mask flags > raised by the kernel itself. This isn't about block. I will be setting this for a file system operation as well and use the same io_uring code for that. That's how I ran into the issue.