io_uring: add ring freeing helper

Commit 9c189eee73 upstream.

We do rings and sqes separately, move them into a helper that does both
the freeing and clearing of the memory.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Jens Axboe 2021-11-05 17:15:46 -06:00 • committed by Greg Kroah-Hartman
commit a00113dc99