Re: [liburing PATCH] io_uring: invalid fd for file-less operations

Jens Axboe
2019-11-13T21:39:16Z

On 11/13/19 2:27 PM, Pavel Begunkov wrote:
> If an operation doesn't need a file, set fd to an invalid value.
> This would help to spot an unwanted fdget() in the kernel, and is
> conceptually more correct (though negotiable)

I don't think that negotiable, if we don't need a valid fd, we should
just set it to -1. I've applied this patch, thanks.

--
Jens Axboe