Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp810137pxu; Wed, 2 Dec 2020 04:08:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJz3kMy+VGxlrghiolKXbOBQRUc0VeHtopIKn0yJTf+3Yp9MxUc+IaTraiYJSZrU7IaYrIW4 X-Received: by 2002:a17:906:145b:: with SMTP id q27mr2047045ejc.86.1606910895972; Wed, 02 Dec 2020 04:08:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606910895; cv=none; d=google.com; s=arc-20160816; b=wS54pHTX01ajgOWKnLT2R7XlLAbejqnKb7/9HH5O4v0oVcwYsLZ/DfcBdsh9XyNA7K G6bqJXPcNfL37lVHKqE4F5avoFO/WgXN80iGGYbtTdnieXwvSy2FHWkUnnVWMiPQFzK/ MGFnRJK3Qjgn2xUZ+oz31x/gf6Vt515eF9hkeSF2Lc0wUT5nZ9l3FHtGRKuJ+q7M1Z18 fOwMfyV+9K8bnn6+hXr4M79p/Zm4hS9qpgF5vs5Mie987sEA9UkM2dDTQPbPaZwj29f/ /vaxAN2L3cSIvAuRfiS8eFzhXywEnQD6AcKyvhIMg2uksVHyRcuV64KxfJNkZLIxtch7 jO6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=K7GmInsfgYbEDUsa1XTx+/12Y/ukmE+1ITJFBgrx6TU=; b=f49ZMBJQXen3EB8Yg3YuHIgtUJpDNKhlZoziP2kocJAI3Y9DhP/b1E7WQZCp0xx266 7AWcmY8X+t7bxMmaB9hcSKVTZ6UZmlaO6k23tM23PygTP2hIsIKxMFjIPzZxJc0oxWT5 eYBSV8wLuvz/48IbYHjGJX/xskFyxJyeth/p2qDU4ahYiiSPqrw4cTe/j//0s4QYOWKT uMciZODNjHx4/QQIRTIgGJgyBtP7xlb45F/zgvaIPxkabi4rMK2NracHfg52bHT1KOL4 lNxqP9xhV6xPjtyUO2KPn8NpxQehqnecKu90Eb5PINZTrlp/GO6ildjdy7GNnEilVuX1 x3NQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb11si830830edb.446.2020.12.02.04.07.52; Wed, 02 Dec 2020 04:08:15 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726562AbgLBMEA (ORCPT + 99 others); Wed, 2 Dec 2020 07:04:00 -0500 Received: from mx2.suse.de ([195.135.220.15]:45838 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727100AbgLBMEA (ORCPT ); Wed, 2 Dec 2020 07:04:00 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id CF2A5AB63; Wed, 2 Dec 2020 12:03:18 +0000 (UTC) Subject: Re: [PATCH 00/13] ibmvfc: initial MQ development To: Tyrel Datwyler , james.bottomley@hansenpartnership.com Cc: martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, brking@linux.ibm.com References: <20201126014824.123831-1-tyreld@linux.ibm.com> From: Hannes Reinecke Message-ID: <90e9a8ac-d2b9-bb64-7c7d-607adaea0f26@suse.de> Date: Wed, 2 Dec 2020 13:03:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20201126014824.123831-1-tyreld@linux.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/26/20 2:48 AM, Tyrel Datwyler wrote: > Recent updates in pHyp Firmware and VIOS releases provide new infrastructure > towards enabling Subordinate Command Response Queues (Sub-CRQs) such that each > Sub-CRQ is a channel backed by an actual hardware queue in the FC stack on the > partner VIOS. Sub-CRQs are registered with the firmware via hypercalls and then > negotiated with the VIOS via new Management Datagrams (MADs) for channel setup. > > This initial implementation adds the necessary Sub-CRQ framework and implements > the new MADs for negotiating and assigning a set of Sub-CRQs to associated VIOS > HW backed channels. The event pool and locking still leverages the legacy single > queue implementation, and as such lock contention is problematic when increasing > the number of queues. However, this initial work demonstrates a 1.2x factor > increase in IOPs when configured with two HW queues despite lock contention. > Why do you still hold the hold lock during submission? An initial check on the submission code path didn't reveal anything obvious, so it _should_ be possible to drop the host lock there. Or at least move it into the submission function itself to avoid lock contention. Hmm? Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer