diff options
author | Tomáš Chaloupka <chalucha@gmail.com> | 2021-10-24 17:32:23 +0200 |
---|---|---|
committer | Tomáš Chaloupka <chalucha@gmail.com> | 2021-10-24 18:36:33 +0200 |
commit | afa42f645102365fc35ed6bb5c4f894e266711eb (patch) | |
tree | b7b41e96632d8513d0d2aaedd592d8874d0f676a | |
parent | 56cd4af3f8c536e9366efc70e499b4c3e8695476 (diff) | |
download | liburing-afa42f645102365fc35ed6bb5c4f894e266711eb.tar.gz liburing-afa42f645102365fc35ed6bb5c4f894e266711eb.tar.bz2 |
Fix invalid opcode used in io_uring_unregister_iowq_aff
Just a trivial fix of used opcode IORING_REGISTER_IOWQ_AFF -> IORING_UNREGISTER_IOWQ_AFF.
Signed-off-by: Tomáš Chaloupka <chalucha@gmail.com>
Fixes: https://github.com/axboe/liburing/issues/463
-rw-r--r-- | src/register.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/register.c b/src/register.c index 1f2c409..a1b1a22 100644 --- a/src/register.c +++ b/src/register.c @@ -248,7 +248,7 @@ int io_uring_register_iowq_aff(struct io_uring *ring, size_t cpusz, int io_uring_unregister_iowq_aff(struct io_uring *ring) { return ____sys_io_uring_register(ring->ring_fd, - IORING_REGISTER_IOWQ_AFF, NULL, 0); + IORING_UNREGISTER_IOWQ_AFF, NULL, 0); } int io_uring_register_iowq_max_workers(struct io_uring *ring, unsigned int *val) |