Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions block/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -856,12 +856,17 @@ long compat_blkdev_ioctl(struct file *file, unsigned cmd, unsigned long arg)
}
#endif

/*
* Per-command block io_uring PDU stored in io_uring_cmd.pdu[32].
* Holds discard state between submission, completion and task work.
*/
struct blk_iou_cmd {
u64 start;
u64 len;
int res;
bool nowait;
};
static_assert(sizeof(struct blk_iou_cmd) <= sizeof_field(struct io_uring_cmd, pdu));

static void blk_cmd_complete(struct io_tw_req tw_req, io_tw_token_t tw)
{
Expand Down