io_uring: add io_kiocb ref count
authorJens Axboe <axboe@kernel.dk>
Thu, 17 Jan 2019 15:39:48 +0000 (08:39 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 28 Feb 2019 15:24:23 +0000 (08:24 -0700)
commitc16361c1d805b6ea50c3c1fc5c314e944c71a984
tree39685143a45d9ad5981362ac908ce4b3cdd7e0ca
parent6c271ce2f1d572f7fa225700a13cfe7ced492434
io_uring: add io_kiocb ref count

We'll use this for the POLL implementation. Regular requests will
NOT be using references, so initialize it to 0. Any real use of
the io_kiocb ref will initialize it to at least 2.

Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c