io_uring: kill hot path fixed file bitmap debug checks
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 16 Oct 2022 20:30:49 +0000 (21:30 +0100)
committerJens Axboe <axboe@kernel.dk>
Sun, 16 Oct 2022 23:07:53 +0000 (17:07 -0600)
commit4d5059512d283dab7372d282c2fbd43c7f5a2456
tree384732a62cb297aee6e4f9272350bb1ac777eee2
parent38eddb2c75fb99b9cd78445094ca0e1bda08d102
io_uring: kill hot path fixed file bitmap debug checks

We test file_table.bitmap in io_file_get_fixed() to check invariants,
don't do it, it's expensive and was showing up in profiles. No reports of
this triggering has come in. Move the check to the file clear instead,
which will still catch any wrong usage.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/cf77f2ded68d2e5b2bc7355784d969837d48e023.1665891182.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/filetable.h
io_uring/io_uring.c