Skip to content

Commit 80d43cb

Browse files
Md Haris Iqbalaxboe
authored andcommitted
block/rnbd-clt: Change queue_depth type in rnbd_clt_session to size_t
The member queue_depth in the structure rnbd_clt_session is read from the rtrs client side using the function rtrs_clt_query, which in turn is read from the rtrs_clt structure. It should really be of type size_t. Fixes: 90426e8 ("block/rnbd: client: private header with client structs and functions") Signed-off-by: Md Haris Iqbal <haris.iqbal@ionos.com> Reviewed-by: Guoqing Jiang <guoqing.jiang@ionos.com> Signed-off-by: Gioh Kim <gi-oh.kim@ionos.com> Link: https://lore.kernel.org/r/20210428061359.206794-2-gi-oh.kim@ionos.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 635de95 commit 80d43cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/block/rnbd/rnbd-clt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ struct rnbd_clt_session {
8787
DECLARE_BITMAP(cpu_queues_bm, NR_CPUS);
8888
int __percpu *cpu_rr; /* per-cpu var for CPU round-robin */
8989
atomic_t busy;
90-
int queue_depth;
90+
size_t queue_depth;
9191
u32 max_io_size;
9292
struct blk_mq_tag_set tag_set;
9393
u32 nr_poll_queues;

0 commit comments

Comments
 (0)