On 5/31/20 8:46 AM, Jens Axboe wrote: > On 5/31/20 6:47 AM, Clay Harris wrote: >> Tested on kernel 5.6.14 >> >> $ ./closetest closetest.c >> >> path closetest.c open on fd 3 with O_RDONLY >> ---- io_uring close(3) >> ---- ordinary close(3) >> ordinary close(3) failed, errno 9: Bad file descriptor >> >> >> $ ./closetest closetest.c opath >> >> path closetest.c open on fd 3 with O_PATH >> ---- io_uring close(3) >> io_uring close() failed, errno 9: Bad file descriptor >> ---- ordinary close(3) >> ordinary close(3) returned 0 > > Can you include the test case, please? Should be an easy fix, but no > point rewriting a test case if I can avoid it... We just need this ported to stable once it goes into 5.8-rc: https://git.kernel.dk/cgit/linux-block/commit/?h=for-5.8/io_uring&id=904fbcb115c85090484dfdffaf7f461d96fe8e53 -- Jens Axboe