Thread (36 messages) 36 messages, 6 authors, 2021-12-10

Re: [PATCH] block: switch to atomic_t for request references

From: Keith Busch <kbusch@kernel.org>
Date: 2021-12-03 15:56:16

On Fri, Dec 03, 2021 at 08:35:40AM -0700, Jens Axboe wrote:
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.
Looks good.

Reviewed-by: Keith Busch <kbusch@kernel.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help