io_uring: implement fixed buffers registration similar to fixed files
authorBijan Mottahedeh <bijan.mottahedeh@oracle.com>
Sun, 25 Apr 2021 13:32:25 +0000 (14:32 +0100)
committerJens Axboe <axboe@kernel.dk>
Sun, 25 Apr 2021 16:14:04 +0000 (10:14 -0600)
commitbd54b6fe3316ec1d469513b888ced31eec20032a
tree6a11d16102c8d106282bceb5bb1bb4a0a7a881c7
parenteae071c9b4cefbcc3f985c5abf9a6e32c1608ca9
io_uring: implement fixed buffers registration similar to fixed files

Apply fixed_rsrc functionality for fixed buffers support.

Signed-off-by: Bijan Mottahedeh <bijan.mottahedeh@oracle.com>
[rebase, remove multi-level tables, fix unregister on exit]
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/17035f4f75319dc92962fce4fc04bc0afb5a68dc.1619356238.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c