]> www.infradead.org Git - users/hch/block.git/commitdiff
simplify async size
authorChristoph Hellwig <hch@lst.de>
Fri, 6 May 2022 06:02:47 +0000 (08:02 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 6 May 2022 06:03:07 +0000 (08:03 +0200)
Same as for the prep handler.

fs/io_uring.c

index 8afa62ec6bc21ed8345ad6a2835f872e2408886b..f72fed9a1ccf775c7cb9dd938a3c7b312c387ef6 100644 (file)
@@ -1286,8 +1286,7 @@ static const struct io_op_def io_op_defs[] = {
        [IORING_OP_URING_CMD] = {
                .needs_file             = 1,
                .plug                   = 1,
-               .async_size             = 2 * sizeof(struct io_uring_sqe) -
-                                         offsetof(struct io_uring_sqe, cmd),
+               .async_size             = 2 * sizeof(struct io_uring_sqe),
        },
 };