Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2783280pxj; Mon, 10 May 2021 10:36:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4LMitRWyYc/4EHcW0nQ3dNn1VPktVQzCpyChJiizlaJU/xLGG22q9T0dYKQIz7mwLut+T X-Received: by 2002:a92:4a08:: with SMTP id m8mr17163199ilf.85.1620668185352; Mon, 10 May 2021 10:36:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620668185; cv=none; d=google.com; s=arc-20160816; b=lc2vrKowRTfjj/7BphNf+ddM2ZbBuqsv8OplLmMP659WtDCgWCAeW7pC+ncfZpXNKa y61r/V0qSiNCTIWtX8hsN5lk0VBQrYAC8snX5VuuMNY7mYUWfvR4ENmfqK2qyPELFj9t Ip2NdxeWbD3/8d8ju6ij14deK9FB7qt77oK3qnNbHji5QI2B8JV29NNZX8cBOFAZ7JiV +T8tk5oq5lvADyPT3twckOYp4Ov1P7mq4jZ5HrbDJtdoaK20u+RjftdBmT03FqCn+35o BU3Sb781msScbYe6UTHIJBnxw/5RH3zy40PYqimSga5D/CIu4NtSyfCYx4o5FZELGSfS 2tzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=w1KqPRqS0Ebww9jDIiDAbo5gG5VohCVezhH4mMVAKQM=; b=Z0Kci9uMnYR1uZ51ahiTnvnjXJXa1pFtn1F8Jw4MMoSGYzNPjx2XZWVEvOoYHFqKUB OBwdEPtUwxZu5sjA9O8rukoq+zw3lnClCfKskVMyHyHgiUyOPb3o46uuY6kEkYjhDCie sG76jNePPSFo3MY2HYsS5blA6G8yMCFtY7WxGyn2a4KdHddyipIzLxiRJ4t4Og68WzmQ 8U8JId+zISlgYuzzJGX3ZPYeQ6YNKsRjRUaIsgBzSerSOlm7eNi+B8/YMh1say/9qHEN 1ZTHKwzzofmaBf2lxrZMJjaXnPVvkZRwqdJbUXrVgNst2Odf5c4hourMC/42rbJqrrrc iPOQ== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t2si6646585ilq.112.2021.05.10.10.36.12; Mon, 10 May 2021 10:36:25 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233105AbhEJRfE (ORCPT + 99 others); Mon, 10 May 2021 13:35:04 -0400 Received: from mail-wr1-f42.google.com ([209.85.221.42]:39787 "EHLO mail-wr1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233215AbhEJReb (ORCPT ); Mon, 10 May 2021 13:34:31 -0400 Received: by mail-wr1-f42.google.com with SMTP id v12so17452340wrq.6; Mon, 10 May 2021 10:33:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=w1KqPRqS0Ebww9jDIiDAbo5gG5VohCVezhH4mMVAKQM=; b=bsVBKyPk3dIZ8/oc9N2XyXy4aAXbjHwXUc7sDUpJkgrX0EQMgXJWH9iHFr58Q5KsM7 BbVF7c6Yg3YPwwSG9F99Y+DCS/D0lnGBSWfhKCZseVY82Bx6TYnrpbPvF6Mi9IE/ISPT XEkV8bAhYsWVwQ+F+7Kniw1QuYVtsQZdFnI8AX1r7jTDEkr8ojxiYoZdNpVJCd8Q7Jys cH7AfE260T8ASgwFwnV2acWWsF8WCobvLuM8R8LznA1yQZI8TNcPrlAfONiAHDVkc39+ jduYtFjgKmCzxZN3bUB4psna/OKXrSYB+gjJ6sMoZqrWufBvV1rXCRDIt2ZEXvN3HXJ2 O/GQ== X-Gm-Message-State: AOAM5337mAb3ZV+pjVjCLRSqxYhde9rW4lIaMRmrQXN78A2WGjv79uRL OVwodDuZ6AWBHSTJUgamcgk= X-Received: by 2002:adf:fd0d:: with SMTP id e13mr32338189wrr.56.1620668003107; Mon, 10 May 2021 10:33:23 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id e38sm178888wmp.21.2021.05.10.10.33.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 10:33:22 -0700 (PDT) Date: Mon, 10 May 2021 17:33:21 +0000 From: Wei Liu To: Michael Kelley Cc: "Andrea Parri (Microsoft)" , "linux-kernel@vger.kernel.org" , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , "wei.liu@kernel.org" , "davem@davemloft.net" , "kuba@kernel.org" , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "linux-hyperv@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-scsi@vger.kernel.org" Subject: Re: [PATCH hyperv-next] scsi: storvsc: Use blk_mq_unique_tag() to generate requestIDs Message-ID: <20210510173321.lfw4nha7wrzfgkkd@liuwe-devbox-debian-v2> References: <20210415105926.3688-1-parri.andrea@gmail.com> <20210506174516.aiuuhu7oediqozv4@liuwe-devbox-debian-v2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210506174516.aiuuhu7oediqozv4@liuwe-devbox-debian-v2> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 06, 2021 at 05:45:16PM +0000, Wei Liu wrote: > On Thu, Apr 15, 2021 at 01:22:32PM +0000, Michael Kelley wrote: > > From: Andrea Parri (Microsoft) Sent: Thursday, April 15, 2021 3:59 AM > > > > > > Use blk_mq_unique_tag() to generate requestIDs for StorVSC, avoiding > > > all issues with allocating enough entries in the VMbus requestor. > > > > > > Suggested-by: Michael Kelley > > > Signed-off-by: Andrea Parri (Microsoft) > > > --- > > > Changes since RFC: > > > - pass sentinel values for {init,reset}_request in vmbus_sendpacket() > > > - remove/inline the storvsc_request_addr() callback > > > - make storvsc_next_request_id() 'static' > > > - add code to handle the case of an unsolicited message from Hyper-V > > > - other minor/style changes > > > > > > [1] https://lore.kernel.org/linux-hyperv/20210408161315.341888-1-parri.andrea@gmail.com/ > > > > > > drivers/hv/channel.c | 14 ++--- > > > drivers/hv/ring_buffer.c | 13 +++-- > > > drivers/net/hyperv/netvsc.c | 8 ++- > > > drivers/net/hyperv/rndis_filter.c | 2 + > > > drivers/scsi/storvsc_drv.c | 94 +++++++++++++++++++++---------- > > > include/linux/hyperv.h | 13 ++++- > > > 6 files changed, 95 insertions(+), 49 deletions(-) > > > > LGTM > > > > Reviewed-by: Michael Kelley > > Although this patch is tagged with SCSI, I think it would be better if > this goes through the hyperv tree. Let me know if there is any > objection. Andrea, please rebase this patch on top of hyperv-next. It does not apply as-is. Wei.