]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: keep generic rsrc infra generic
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 20 Feb 2021 18:03:49 +0000 (18:03 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 21 Feb 2021 02:02:45 +0000 (19:02 -0700)
commita7d1704a58f37cba52993879ca6c63ee39fd6b44
tree9d92dfc0a38ebe2c46fdc076d5e6524cb6ab197f
parent9e32a8ddd6a02c5d0282a2c26efcb3dff5214f57
io_uring: keep generic rsrc infra generic

io_rsrc_ref_quiesce() is a generic resource function, though now it
was wired to allocate and initialise ref nodes with file-specific
callbacks/etc. Keep it sane by passing in as a parameters everything we
need for initialisations, otherwise it will hurt us badly one day.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c