On 1/4/20 9:22 AM, wdauchy@xxxxxxxxx wrote: > Hello, > > I am trying to understand SQPOLL behaviour using liburing. I modified the > test in liburing (see below). The test is failing when we use `openat` > with SQPOLL: > > cqe res -9 > test_io failed 0/0/1/0/0 > > Is `openat` supported with SQPOLL? If not I would expect -EINVAL as a > return value, but maybe I'm missing something. > note: I also tested without io_uring_register_files call. sqpoll requires the use of fixed files for any sqe, at least for now. That's why it returns -EBADF if the request doesn't have fixed files specified. So it cannot be used with opcodes that create (or close) file descriptors either. -- Jens Axboe