[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c83a2cb6-3486-4977-9e1e-abda015a4dad@kernel.dk>
Date: Tue, 1 Jul 2025 13:05:57 -0600
From: Jens Axboe <axboe@...nel.dk>
To: Caleb Sander Mateos <csander@...estorage.com>, Chris Mason <clm@...com>,
Josef Bacik <josef@...icpanda.com>, David Sterba <dsterba@...e.com>
Cc: Mark Harmstone <maharmstone@...com>, linux-btrfs@...r.kernel.org,
io-uring@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/4] btrfs/ioctl: store btrfs_uring_encoded_data in
io_btrfs_cmd
> @@ -4811,11 +4813,15 @@ static int btrfs_uring_encoded_read(struct io_uring_cmd *cmd, unsigned int issue
> loff_t pos;
> struct kiocb kiocb;
> struct extent_state *cached_state = NULL;
> u64 start, lockend;
> void __user *sqe_addr;
> - struct btrfs_uring_encoded_data *data = io_uring_cmd_get_async_data(cmd)->op_data;
> + struct io_btrfs_cmd *bc = io_uring_cmd_to_pdu(cmd, struct io_btrfs_cmd);
> + struct btrfs_uring_encoded_data *data = NULL;
> +
> + if (cmd->flags & IORING_URING_CMD_REISSUE)
> + data = bc->data;
Can this be a btrfs io_btrfs_cmd specific flag? Doesn't seem like it
would need to be io_uring wide.
--
Jens Axboe
Powered by blists - more mailing lists