commit | c0bcc54a33a91989b9b00a2aa79663c0e4bcf323 | [log] [tgz] |
---|---|---|
author | Josh Triplett <josh@joshtriplett.org> | Sun Feb 19 09:48:17 2023 -0800 |
committer | Josh Triplett <josh@joshtriplett.org> | Sun Feb 19 09:58:05 2023 -0800 |
tree | f9096ee157eeb43f0f3844a5f48040875d07e830 | |
parent | cf5f5f9802e00e8026c18ac63d329d938acd0bbf [diff] |
Optimize do_register by combining feature check with internal flag Introduce the new internal flag INT_FLAG_REG_REG_RING, set when setting INT_FLAG_REG_RING if the kernel supports IORING_FEAT_REG_REG_RING. This allows all the register functions to just check INT_FLAG_REG_REG_RING. Suggested-by: Dylan Yudaken <dylany@meta.com> Signed-off-by: Josh Triplett <josh@joshtriplett.org>