On 9/25/20 5:40 PM, Josef wrote: >> If you have a file registered, that holds a reference to it. So when >> you then otherwise close it in the app, it's similar to having done >> a dup() on it and just closing the original. So yes, this is known and >> expected, I'm afraid. > > Thanks for clarification, the only way to delete the file registered > reference is to use io_uring_unregister_files right? Correct, that's the only way to trigger the final fput() that'll close the socket (for real). > I don't think that we can support SQPOLL for 5.8/5.9, but at least for 5.10+ :) It'll be a lot more generically useful once we have non-registered file support, so I'd probably just ignore it for now for your use case. -- Jens Axboe