Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1798796pxb; Thu, 28 Oct 2021 10:12:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmzZa++xzlToXIaEiILM0qcCDsLPgXxieN96ma1EiKnK3KtozDzYJcxOeYWkmrpHWLaInT X-Received: by 2002:aa7:df83:: with SMTP id b3mr7459457edy.305.1635441177014; Thu, 28 Oct 2021 10:12:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635441177; cv=none; d=google.com; s=arc-20160816; b=O+zWBJwVak/FbhK7tykEMISm9Q2BtOf7NCX2t5VCeDCPKf/WW5CZdhlZ+ruozUswrV Hw7pECcqGhD9VSIhtGW1PQ49iKSIm33B+lb8Gxl0xHHLw9cEUx/Co96PWRR9MjTeZkOb UVfVqWOHkAIhyYSjhIJmdkQc5yX8sjRO12+y+SFzlSH7UcPt37UfZwhcGyaKvprwzuGP uBhw1agOH+bqobm2ndcznjmFQkz1N7vo2Z9FhNFLa7s/vFeU18i9bZMKOYMIS4qaC0NN h3ROsW7VszbZ/YQ4YbXkADybSukxZFbwPmLYa2K39pCRQEEPHaanR9I4nxRxsGvTGARB DuSQ== 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:dkim-signature; bh=QZ+Ok3QSmenqeVI6Z1A7VRMrFdlOCkIcageNVExYylc=; b=V5Pg9p6WkfFNwtCUcxCcwALFjfWCaufMhhkuCR63nUaZ3d2q1XvcGvjH0TjKbtqeSo mvkhNPn45YtsnCAXL8gEkBagC5brRDXpRi3vp5NVZKBBkquap6Kr65H6hrVnQF4uZIa+ nRsc5CUyXOv1SKvhz72HQBaiqvzuGWB6GheV41uLM2R3dphw/MC0zeRs8P0QrfHkXh7U Un74YF7xKroRXjY6cPzcZlIzpn4E7Kquqz+OFg0k2/ejqaFHkwrgDVCgPIBKNpCI9buT TecnpCYAUPVQcagv9E7M+HMVMcAg9DTaVkMg/Sn9fejff8/qHxNofdugOFSYXL1h949r 8uKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=b2hbSrdS; 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 r13si5260582edb.326.2021.10.28.10.12.32; Thu, 28 Oct 2021 10:12:57 -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=@infradead.org header.s=bombadil.20210309 header.b=b2hbSrdS; 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 S230350AbhJ1RM5 (ORCPT + 99 others); Thu, 28 Oct 2021 13:12:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230164AbhJ1RM4 (ORCPT ); Thu, 28 Oct 2021 13:12:56 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CC91C061570; Thu, 28 Oct 2021 10:10:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=QZ+Ok3QSmenqeVI6Z1A7VRMrFdlOCkIcageNVExYylc=; b=b2hbSrdSC0kGmPAhfihD5iFS0Q xz/h1wVwG3l0wjyGPDn4YAAtuKOtQ9x+bQ3wVFvZiDGH3o8HlSOHP+gz3WCTmIn/69AA8Vyqpy+fN Iu+62AgQfjLPPG0K2D3BOaJynv5YvbD37iTiOlaWWJO2TXVNJE6IUmbpj/Zepisz82jJEuIUBOz8h mXZpPq45AYhp1cwsiMTGEmeloKiBcbj2IIx4BmqeqG+iYWzdEbeoSntsjTvD+XS8mnl9aApe+QncE SClPthXIkFRJr1xViXlPWTER1itjHWNMZGNpFCb0oRlXCkVAVvlVivwk8eQ2yLbJT4Snd3d+ylmTH u72ZVHtA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mg8v2-008gjq-Fp; Thu, 28 Oct 2021 17:10:24 +0000 Date: Thu, 28 Oct 2021 10:10:24 -0700 From: Christoph Hellwig To: Bart Van Assche Cc: Christoph Hellwig , James Bottomley , daejun7.park@samsung.com, ALIM AKHTAR , "avri.altman@wdc.com" , "martin.petersen@oracle.com" , "huobean@gmail.com" , Keoseong Park , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] scsi: ufs: Fix proper API to send HPB pre-request Message-ID: References: <20211027223619epcms2p60bbc74c9ba9757c58709a99acd0892ff@epcms2p6> <0f9229c3c4c7859524411a47db96a3b53ac89c90.camel@linux.ibm.com> <54b45df9-9339-c69d-73b5-9c293449b849@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54b45df9-9339-c69d-73b5-9c293449b849@acm.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 28, 2021 at 10:07:52AM -0700, Bart Van Assche wrote: > I spent some time looking around for other examples of allocating and > inserting a request from inside block layer callbacks. I only found one > such example, namely in the NVMe core. nvme_timeout() calls > nvme_alloc_request() and blk_execute_rq_nowait(). The difference between > what the UFS HPB code is doing and what nvme_timeout() does doesn't seem > that big to me. The difference is that nvme_timeout allocates a request on the admin queue, and only does so for commands on the I/O queues.