test/nop: add NOP test case

Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Jens Axboe
2019-04-11 09:01:16 -06:00
parent 093e902c28
commit 8115820eb9
3 changed files with 121 additions and 2 deletions

View File

@@ -145,4 +145,10 @@ static inline void io_uring_prep_fsync(struct io_uring_sqe *sqe, int fd,
sqe->fsync_flags = fsync_flags;
}
static inline void io_uring_prep_nop(struct io_uring_sqe *sqe)
{
memset(sqe, 0, sizeof(*sqe));
sqe->opcode = IORING_OP_NOP;
}
#endif