Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp480095pxj; Tue, 18 May 2021 07:39:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5VtgEF8sFlJnci9kdPIwyHufE1YpTOQuiB85rLeR9nMF61MZqagLRvT1UD134o9jisvmK X-Received: by 2002:a17:906:2ad2:: with SMTP id m18mr6469681eje.44.1621348787953; Tue, 18 May 2021 07:39:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621348787; cv=none; d=google.com; s=arc-20160816; b=ROzH7aBnxEpaJvJnXpW4COnYdmAJM/brNc/9eT+EvBAbLbl6rWRZUwjrS+zF9CkVg4 ULijaQlKpAF7/NZ4ddCAMJi7e+C7v5nZgHRXOrgY9Ue+uoA/SeySZPOhwkRt8Pi04NfY 8HNCrGLLYeP6SVim3ZSj1OLvdbRcZRQ1Hu9qw2khJCvdRSpglim/+bIKRAEHqXwQFDGh e7BMTvdOb42grPO5K+aUzzdOzocKGES1OeycK61u8+tRVv1+obIyzzbDGxDZxEjnDjiA 6uJydYiARvRY+8qJQZTcCeo+E3Hq0BHolQoMHS/62IdnCAsUjYDPyUGvjbEmVWOqof71 ZxqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=NraYhjTo+DFhEtqHKIUjHj6VSsFuC4ZxMUXU0msA4NQ=; b=Th73EAH2TSv6x56AqjsMBcDdKJF7fSROWiOwm/Jkzm7WTMPY22aKRU/luXQ65Jl35E NQM1f+3yewOCmW8wPX1zKs34yFhYgnsWvVY6TgwxK9mxruJZ/yM0cDDvXhUi+1SVp791 BGa4uRAV7CsXO12Btp+mjRghiN8V4YtMpVhLoeA3YZAxEy5dgeN9NHapCGp3rmUhWOuc I9k30H8pfW+Abu193kV8isLBJHYKoxzAnGakavjXlL1ufRugaWAHvFN//G+DV0gPvyTE 9KRQ61aqGZ7a+X/0onb+3wysZ2+CIeWAq89+66ii4NFl92jqpqP4PHrhB5VoDzSPEcBE lNOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Hj8Or4PL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oy6si12514075ejb.391.2021.05.18.07.39.23; Tue, 18 May 2021 07:39:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Hj8Or4PL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244787AbhEQPrG (ORCPT + 99 others); Mon, 17 May 2021 11:47:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:52290 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244475AbhEQPbW (ORCPT ); Mon, 17 May 2021 11:31:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 544E1613F6; Mon, 17 May 2021 14:38:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621262295; bh=POYBubI5RDoRqroKCeOyzP6rTLnBqSm6GgYxqJIfC7w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Hj8Or4PLY8e2aYMHAOZtdGpnHDl82nk1a4PI7gowj2eK+q3DrGYN9p4LYFYzgnFRH tVLQEkU4kWa0LUKJRn0b32FFanC0TODP1+jbofWxb7iBFcC1ycZ6MuwwuAvOEsqUxc P7J9n8fO1ZYDlooWFQ2Nt71VFDXhhIdPU1IxbEvM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Md Haris Iqbal , Guoqing Jiang , Gioh Kim , Jens Axboe , Sasha Levin Subject: [PATCH 5.10 155/289] block/rnbd-clt: Change queue_depth type in rnbd_clt_session to size_t Date: Mon, 17 May 2021 16:01:20 +0200 Message-Id: <20210517140310.354406941@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140305.140529752@linuxfoundation.org> References: <20210517140305.140529752@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Md Haris Iqbal [ Upstream commit 80d43cbd46155744ee450d2476ee4fcf2917ae9b ] 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: 90426e89f54db ("block/rnbd: client: private header with client structs and functions") Signed-off-by: Md Haris Iqbal Reviewed-by: Guoqing Jiang Signed-off-by: Gioh Kim Link: https://lore.kernel.org/r/20210428061359.206794-2-gi-oh.kim@ionos.com Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --- drivers/block/rnbd/rnbd-clt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/rnbd/rnbd-clt.h b/drivers/block/rnbd/rnbd-clt.h index b193d5904050..2941e3862b9c 100644 --- a/drivers/block/rnbd/rnbd-clt.h +++ b/drivers/block/rnbd/rnbd-clt.h @@ -79,7 +79,7 @@ struct rnbd_clt_session { DECLARE_BITMAP(cpu_queues_bm, NR_CPUS); int __percpu *cpu_rr; /* per-cpu var for CPU round-robin */ atomic_t busy; - int queue_depth; + size_t queue_depth; u32 max_io_size; struct blk_mq_tag_set tag_set; struct mutex lock; /* protects state and devs_list */ -- 2.30.2