On 2/25/25 14:00, Pavel Begunkov wrote:
On 2/24/25 21:31, Keith Busch wrote:
From: Keith Busch <kbusch@xxxxxxxxxx>
...
diff --git a/io_uring/rsrc.h b/io_uring/rsrc.h
index f0e9080599646..64bf35667cf9c 100644
--- a/io_uring/rsrc.h
+++ b/io_uring/rsrc.h
@@ -20,6 +20,11 @@ struct io_rsrc_node {
};
};
+enum {
+ IO_IMU_READABLE = 1 << 0,
+ IO_IMU_WRITEABLE = 1 << 1,
1 << READ, 1 << WRITE
And let's add BUILD_BUG_ON that they fit into u8.
Apart from that and Ming's comments that patch looks good to me.
--
Pavel Begunkov