ublk: convert to refcount_t
authorMing Lei <ming.lei@redhat.com>
Tue, 20 May 2025 04:54:31 +0000 (12:54 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 20 May 2025 16:24:45 +0000 (10:24 -0600)
commitb1c3b4695a4d5f7a3bf43f1f7eb774bfa79b86a7
treecddf02aedc9f84533206241ee466d1e234d513ca
parent3fee1257ab6be5b52c9f002f27d5620583a8dc40
ublk: convert to refcount_t

Convert to refcount_t and prepare for supporting to register bvec buffer
automatically, which needs to initialize reference counter as 2, and
kref doesn't provide this interface, so convert to refcount_t.

Reviewed-by: Caleb Sander Mateos <csander@purestorage.com>
Suggested-by: Caleb Sander Mateos <csander@purestorage.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250520045455.515691-2-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c