Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 0a467d0f authored by Jens Axboe's avatar Jens Axboe
Browse files

block: switch to atomic_t for request references


refcount_t is not as expensive as it used to be, but it's still more
expensive than the io_uring method of using atomic_t and just checking
for potential over/underflow.

This borrows that same implementation, which in turn is based on the
mm implementation from Linus.

Reviewed-by: default avatarKeith Busch <kbusch@kernel.org>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent ceaa7625
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment