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@xxxxxxxxxx>