]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: consolidate *_check_overflow accounting
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 30 Jul 2020 15:43:49 +0000 (18:43 +0300)
committerJens Axboe <axboe@kernel.dk>
Thu, 30 Jul 2020 17:42:21 +0000 (11:42 -0600)
commiteb52f95a46fb1799ed2e4d755a43c7d1ce0ad7ac
tree1b456e4bdf93700128ddce8a79a4aabf977846cc
parent241bf3e14e861f328944028d9d16d85e7cddccde
io_uring: consolidate *_check_overflow accounting

Add a helper to mark ctx->{cq,sq}_check_overflow to get rid of
duplicates, and it's clearer to check cq_overflow_list directly anyway.

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