]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: uniform SCM accounting
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 7 Apr 2022 12:40:01 +0000 (13:40 +0100)
committerJens Axboe <axboe@kernel.dk>
Sun, 24 Apr 2022 23:34:19 +0000 (17:34 -0600)
commit0233968827f257e65078d05f79738633d2d9f53f
tree3354612d6114e209c5da6e3341189899481e6873
parentfbd4ef2c417a3d924d755a9836182ceb867db4f7
io_uring: uniform SCM accounting

Channel all SCM accounting through io_sqe_file_register(), so we do it
uniformely for updates and initial registration and can kill duplicated
code. Registration might be slightly slower in some case, but first we
skip most of SCM accounting now so it's not a problem. Moreover, it's
nicer for an empty set registration as we don't even try to allocate
skb for them anymore.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/6c9afbeb22812777d0c43e52353b63db5b87ed1e.1649334991.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c