History

io_uring: remove IORING_CQE_F_MSG

This was introduced with the message ring opcode, but isn't strictly required for the request itself. The sender can encode what is needed in user_data, which is passed to the receiver. It's unclear if having a separate flag that essentially says "This CQE did not originate from an SQE on this ring" provides any real utility to applications. While we can always re-introduce a flag to provide this information, we cannot take it away at a later point in time. Remove the flag while we still can, before it's in a released kernel.

Jens Axboe committed 4 years ago

Commit 7ef66d11 parent 8a3e8ee2 files · +1 −4Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/io_uring.h+0−2
@@ -201,11 +201,9 @@ struct io_uring_cqe { · 200 unmodified lines
201201 *
202202 * IORING_CQE_F_BUFFER If set, the upper 16 bits are the buffer ID
203203 * IORING_CQE_F_MORE If set, parent SQE will generate more CQE entries
204− * IORING_CQE_F_MSG If set, CQE was generated with IORING_OP_MSG_RING
205204 */
206205 #define IORING_CQE_F_BUFFER (1U << 0)
207206 #define IORING_CQE_F_MORE (1U << 1)
208−#define IORING_CQE_F_MSG (1U << 2)
209207
210208 enum {
211209 IORING_CQE_BUFFER_SHIFT = 16,