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

Pavel Begunkov
2019-11-13T21:31:18Z

[-- Attachment #1.1: Type: text/plain, Size: 370 bytes --]

On 14/11/2019 00:27, 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)
>

Either we can add a test with close(0) beforehand, but it
won't much help with new opcodes in the future.

--
Pavel Begunkov

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]