io_uring: don't cache number of dropped SQEs
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 14 Jun 2021 22:37:24 +0000 (23:37 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 15 Jun 2021 21:38:40 +0000 (15:38 -0600)
commit15641e427070f05fad2e9d74d191146d6514d30f
treec98b7887c025735d901ad1bea38e737c5506b379
parent17d3aeb33cdae8c87a8ad97c4358a623a630e19a
io_uring: don't cache number of dropped SQEs

Kill ->cached_sq_dropped and wire DRAIN sequence number correction via
->cq_extra, which is there exactly for that purpose. User visible
dropped counter will be populated by incrementing it instead of keeping
a copy, similarly as it was done not so long ago with cq_overflow.

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