Skip to contentSkip to conversation

io_uring: allow IO_SQE_* flags on IORING_OP_TIMEOUT

PATCH New Jens Axboe 1 participant 1 message Dec 4, 2019

Subsystems (2)
lore
Share & tools
lore

Jens Axboe

author maintainer
#0 lore raw

PATCH 1/1 io_uring: allow IO_SQE_* flags on IORING_OP_TIMEOUT

There's really no reason why we forbid things like link/drain etc on regular timeout commands. Enable the usual SQE flags on timeouts.

---

fs/io_uring.c +0 -3
index 6c22a277904e..00f119bdd8ff 100644
@@ -2703,9 +2703,6 @@ static int io_timeout(struct io_kiocb *req, const struct io_uring_sqe *sqe)
 	int ret;
 
 	ret = io_timeout_setup(req);
-	/* common setup allows flags (like links) set, we don't */
-	if (!ret && sqe->flags)
-		ret = -EINVAL;
 	if (ret)
 		return ret;
 
Signature · 1 line
Jens Axboe