engines/io_uring: add support for async TRIM
authorJens Axboe <axboe@kernel.dk>
Mon, 30 Sep 2024 15:42:22 +0000 (09:42 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 30 Sep 2024 15:47:18 +0000 (09:47 -0600)
commit980fb7f2d9981bbfe4a3158d6293308c76a6d77a
treeafee1fb55f621a9c901af4c223485ea825b5da7b
parentb46877edc9a94009ebbb33a461b21dad9bd40964
engines/io_uring: add support for async TRIM

6.12 kernels and newer support async trim, which means the non-cmd path
no longer needs to quiesce the queue and issue a sync trim for a workload
that includes trim/discard requests.

The engine will assume the support is there, and if it gets -EINVAL when
trying an async trim, then it'll punt back to the using the sync trim
again.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/io_uring.c
os/linux/io_uring.h