summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-03-30 11:09:40 -0600
committerJens Axboe <axboe@kernel.dk>2022-03-30 11:09:40 -0600
commitbf26378a632b983f23a1fc1d78506be0d67239e2 (patch)
tree8d1f20047764be6a24080d591e62c66ee8682c9a
parent015be594f11dd8e86e5ade4e7c5426bbea70a56e (diff)
downloadliburing-bf26378a632b983f23a1fc1d78506be0d67239e2.tar.gz
liburing-bf26378a632b983f23a1fc1d78506be0d67239e2.tar.bz2
test/drop-submit: set invalid ioprio to force request to be dropped
We need it dropped at prep time, don't assume that read prep will validate the fd. Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--test/drop-submit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/drop-submit.c b/test/drop-submit.c
index 72e44d9..7b15f26 100644
--- a/test/drop-submit.c
+++ b/test/drop-submit.c
@@ -35,6 +35,7 @@ static int test(struct io_uring *ring, int expect_drops)
}
io_uring_prep_read(sqe, 128, buf, sizeof(buf), 0);
+ sqe->ioprio = (short) -1;
}