io_uring: generalize io_queue_rsrc_removal
authorBijan Mottahedeh <bijan.mottahedeh@oracle.com>
Fri, 15 Jan 2021 17:37:45 +0000 (17:37 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 15:18:36 +0000 (08:18 -0700)
commit4ad5d2716d9ddb1b2c0e9c096e7af28ec700d02a
tree41a5ef51f910152cec6dac8d37679ed21c57c839
parent9c63624bb407b054fecce6c95465171547b5ec15
io_uring: generalize io_queue_rsrc_removal

Generalize io_queue_rsrc_removal to handle both files and buffers.

Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Bijan Mottahedeh <bijan.mottahedeh@oracle.com>
[remove io_mapped_ubuf from rsrc tables/etc. for now]
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c