]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: move req->poll_refs into previous struct hole
authorJens Axboe <axboe@kernel.dk>
Wed, 16 Mar 2022 18:53:23 +0000 (12:53 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 16 Mar 2022 18:53:23 +0000 (12:53 -0600)
commit04758f5f96e0ea327faec4b3e90b9d7fff987953
tree430e747cbd201ced715bc5c6c7b43bf8cfb9a6ea
parent861708e0cd92c62f38ca1c6e2146149ac4293852
io_uring: move req->poll_refs into previous struct hole

This serves two purposes:

- We now have the last cacheline mostly unused for generic workloads,
  instead of having to pull in the poll refs explicitly for workloads
  that rely on poll arming.

- It shrinks the io_kiocb from 232 to 224 bytes.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c