Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3068252pxj; Mon, 17 May 2021 16:58:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxL8bBdrCr1nOUrd7IUk0j9VrMZ/Vz61Jxx1RHC88bZPrEq8g0eUvICq1GLT92PNI9XOEhi X-Received: by 2002:a17:906:e0d5:: with SMTP id gl21mr2740820ejb.93.1621295911017; Mon, 17 May 2021 16:58:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621295911; cv=none; d=google.com; s=arc-20160816; b=gJTuYl587+CewO93OVWklgHNWGJ7KkIdzFFxHx8iMd2O4TgZmjxB4xJW7yxamhMNwT MK6XsXg3ocSkUXj3VPJ+Y6UcpDzUfVUu40eo6nZSJ4pQZ9tE2TvEDtNk/ox2ykADUEz5 fEhBI5Uv9fo+ChWTx0qtBUVgQ0T0qnXwDfipgP9c/N5Kd2j0l0gUdqSFElp4AnmMSzuO azVNd7iy6AwJehE3LEoZfgUgJoUx3kVTM2w34IMrS1aVOSGtOEml/Ynls4XfOL3j531s bqu0PSJjADMy1IW1oB5Ljm8a2razZpPcvQW3VOKbJ1fYtchpjpwx1Rs8IAeKpGG+uQHs Oh3g== 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=p+sAZVEt4/ZZ+tBDcbkUowIfXAL2/TJB+cDK84uqBHc=; b=vFxWVyE5yLhJlEzSUhGeEdKV2jYP5Fe4iLt9Q+FMTPMD+Eglq5OmT/dNmrWrTht8Gs 9s5qVFjAZDiPw0vz6ECSJemmDUCdoOJxFrJv7Mp/ijd+Dl+c/3hv3jW27hiQc3GqaXMh FCi6FqRfZdlZuuNgtTeUKaJU8sP22FmNLF4qKm/YUVIH5BDbvdAHU6z48wWPI77DNV1/ w5G99Ro2T1IJFM7wWK2fV9mdvZAqjoty17RK/tr+MLzKr9D3z548E+EONsrTPCdNS5Yq 4Zh2V1g53j5iLm9EBud7m70sQIJBsof+wFJ1rD6oynpWsogNpXVIZJv5wCFUwfifSmwe ePYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=XjG0lawV; 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 z27si11187859ejc.287.2021.05.17.16.58.07; Mon, 17 May 2021 16:58:31 -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=XjG0lawV; 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 S235957AbhEQOZP (ORCPT + 99 others); Mon, 17 May 2021 10:25:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:33820 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238828AbhEQOVh (ORCPT ); Mon, 17 May 2021 10:21:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C828B6117A; Mon, 17 May 2021 14:11:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621260706; bh=LqtVh2TskELa7OZUg8e/js2vJVq/HScFCwiEFT/ovzI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XjG0lawV5DjtjyZz7UKMRtSWRhj/pfvW1a72W5H3i/37f8orlpcg893tEGWNGQXV7 CkLMjPCoihiUV8O3LdxJHDyu16skopvbfwOJzVi/Pk1pLwrjmk6vdrBTyNEwGqNcsZ AIQZaVp0p8HXUrS/2lgZ4GVz+JzSIlJB/eMDXXOw= 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.12 203/363] block/rnbd-clt: Change queue_depth type in rnbd_clt_session to size_t Date: Mon, 17 May 2021 16:01:09 +0200 Message-Id: <20210517140309.445242462@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140302.508966430@linuxfoundation.org> References: <20210517140302.508966430@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 537d499dad3b..73d980840531 100644 --- a/drivers/block/rnbd/rnbd-clt.h +++ b/drivers/block/rnbd/rnbd-clt.h @@ -87,7 +87,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