]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: use regular request ref counts
authorJens Axboe <axboe@kernel.dk>
Tue, 12 Mar 2019 16:16:44 +0000 (10:16 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 15 Mar 2019 04:08:43 +0000 (22:08 -0600)
commit14e0091c16de5544f70e49c32d6f21851c512256
tree35ee9afed4d00f925ff8d05a98a61e2b9f768f16
parentd546a2ff787f862253d23b66b97b7a7309d61ee7
io_uring: use regular request ref counts

Get rid of the special casing of "normal" requests not having
any references to the io_kiocb. We initialize the ref count to 2,
one for the submission side, and one or the completion side.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c