Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1583503pxy; Thu, 6 May 2021 10:47:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTov7dL0pj8IKlrqX6tS64lfhDypMX+DM0G6YOpWph1O5coexhl8VJTH3CNDVairQ0ukMr X-Received: by 2002:a62:79c3:0:b029:28e:a874:4e1e with SMTP id u186-20020a6279c30000b029028ea8744e1emr6052197pfc.3.1620323256726; Thu, 06 May 2021 10:47:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620323256; cv=none; d=google.com; s=arc-20160816; b=KW/ZEyMLkt3d8iHw8QL+uZXrltFCC4rBq4HH++eZls5jECn0+58X/tivqmNTyK16RR 3pz+uUS0Mn+B1CDJ3T3QGu5uGRcfo+oBxoCHT9eRu6t9C9AXS9aye95pnIDsAg2GK2IV fgGpZZhifDNjjbj963HJxHv9cLv6yi5WUsphUqgwJu14HBb7Edeq1oEPwpjEKLeKcQl5 ZKlqbHPDnRpfF09XPO8IAKCvPhKiKeiKNPGRGIETWEWwaZtdCYsSFQId15RfkzZsDDWz Ny4niPxx2p1nPDm4AXvseG9yxYJg/iUbQ1Ov8XwaeTfXI607A4JIMskMW5l7oFXDKCzK tasQ== 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=LVy7GCswbFabLf4JlDLKnVxcaUnjw14rGjjZ1j3zHAo=; b=ccMY72YhZbOH7K58rSjrPHTO6Rwq+nHlEWxlGdhBi7eAc7ulNksz19t5MJrwrPW/+g nnaj4A3bLc8Ms/OLJ9Jn1uFE87Wrv/Lkia5RNcqBXQd4PgKAOMH7uw1EbpJm3tJhaQPf L1lkwisFQ4jhhSulYjgGZvNH6oahuJD+6v/uQ1CGB6tIneVzgdvVKU4mimeBS1j4Ojr3 voxjFdLuRpCW53J9B3BEDWsVfK3UisNMS5R+kGm3DJmPmVge1fXhfr1K7fJM6DjSBB+t gQpWMxv/jGjNJFBbwaxKFNsopBKqMoPJVNUZq/Vj3x3VSdl6E+UEFzwsTgv51aE7lbax 3z8A== 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 j13si4352982pfa.57.2021.05.06.10.47.23; Thu, 06 May 2021 10:47:36 -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 S236314AbhEFRqU (ORCPT + 99 others); Thu, 6 May 2021 13:46:20 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:34412 "EHLO mail-wr1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236224AbhEFRqT (ORCPT ); Thu, 6 May 2021 13:46:19 -0400 Received: by mail-wr1-f53.google.com with SMTP id t18so6514764wry.1; Thu, 06 May 2021 10:45:19 -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=LVy7GCswbFabLf4JlDLKnVxcaUnjw14rGjjZ1j3zHAo=; b=eoEU1TtgsGRA+OTXkSGI0VJKRDsVlCIxApqKVobLY9kvH9nedczAqqqkRJyna6+Cb2 UozvVwt4aI6Eyb8QVctp/SkMhE9fHLA1oZ6r58elUUbQz6SFQAC92J2YuNoYodf2tIV/ 0QISfLcr7j0loBIYijhxY0dgFHxQmAaTqhqBkyXUJHSmR1aXzQvMHNb2GDp66aFGMihr a5OSpf4W9zOAWeWrQzZBKOZor6Dzf36L9e6zMGqqAAdLJz6h4RvRqiVg7lHZrrTfCgGh 995bEogUKLidtOE0intcwmT+UxC5VPadN2ZY33WHGiP+UkRSqv9+LRbyQJaCfgAwkcAb 46vw== X-Gm-Message-State: AOAM530lwLGGOWoMkN6V9bjIvErbvPSlxiYyl5AXxcJvrYU2Z/qp/lL5 g+yZxsZ7AhveztlHiDaJmps= X-Received: by 2002:adf:efc6:: with SMTP id i6mr6973906wrp.408.1620323118875; Thu, 06 May 2021 10:45:18 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id n20sm1190865wmk.12.2021.05.06.10.45.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 May 2021 10:45:18 -0700 (PDT) Date: Thu, 6 May 2021 17:45:16 +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: <20210506174516.aiuuhu7oediqozv4@liuwe-devbox-debian-v2> References: <20210415105926.3688-1-parri.andrea@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Wei.