Post AXcCQ4Gn34dVh5vm3U by axboe@fosstodon.org
 (DIR) More posts by axboe@fosstodon.org
 (DIR) Post #AXcCQ4Gn34dVh5vm3U by axboe@fosstodon.org
       2023-07-12T00:48:47Z
       
       0 likes, 0 repeats
       
       Busy day, three patchsets posted:xfs/iomap async dio improvements:https://lore.kernel.org/io-uring/20230711203325.208957-1-axboe@kernel.dk/async waitid support for io_uring:https://lore.kernel.org/io-uring/20230711204352.214086-1-axboe@kernel.dk/futex support (wait/wake/waitv) for io_uring:https://lore.kernel.org/io-uring/20230712004705.316157-1-axboe@kernel.dk/
       
 (DIR) Post #AXcCQ5IxCVxeu5x14C by penguin42@mastodon.org.uk
       2023-07-12T10:20:14Z
       
       0 likes, 0 repeats
       
       @axboe Has anyone tried adding file locking to io_uring?  At the moment your choice is either to poll or to block a thread waiting; both of which are a pain.
       
 (DIR) Post #AXcQjKGpBKdwBB1YPY by axboe@fosstodon.org
       2023-07-12T13:00:35Z
       
       0 likes, 0 repeats
       
       @penguin42 don’t think anyone has tried it yet, but agree that would be a useful case.
       
 (DIR) Post #AXcR4281pOXNzimexs by penguin42@mastodon.org.uk
       2023-07-12T13:04:20Z
       
       0 likes, 0 repeats
       
       @axboe I came across it when I used to work on virtiofs; trying to handle the locks in a userspace server is really tricky, you either end up with one thread per user requested lock (which is unboundable) or blocking.
       
 (DIR) Post #AXcZ5g8BNtZFz09RoW by axboe@fosstodon.org
       2023-07-12T14:34:16Z
       
       0 likes, 0 repeats
       
       @penguin42 Yep, it's impossible to do that efficiently. And it's a general problem, two of the three patchsets above is literally catering to problems like that 😉