Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5432410ybc; Wed, 27 Nov 2019 04:03:11 -0800 (PST) X-Google-Smtp-Source: APXvYqx3kWLqn7vkS6qGfiVLq6wFiNPYdXFlEoUhLcTf0KmiBSNpYoO1IiBHrCxxOIwaj03dyEf6 X-Received: by 2002:a5d:4ec2:: with SMTP id s2mr20990880wrv.291.1574856190944; Wed, 27 Nov 2019 04:03:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574856190; cv=none; d=google.com; s=arc-20160816; b=N0v9DP9T6OXmUARZn/jCSIXiOn4JItEO/IqsQZOWiHON6QmIionyh68GRbJgcw6ZBW myvp7vM4EA7mLhhXop1ZZHawg+kX0hG5NOzPIijoSQCCwaLfbJPHRVsKyDDElfolfLAD 7BaovIk7h1k2OSHDcj53dv2tTbSvycteQWeTAONVkjHUw/1/jQqWFL+h9P9ZPSKX8QRK /Vr+ttJLeecQcySJvmLOHOLIZ/fWq335HMheIHK1U1KJ2U5YZt0GiUOuifUHcJ+eGKuA wFIWIlF1El5wBudV0+D0LjwFp+epHgDpbLiNje8LfiPIuAf0KMn3CKXc3D9YD7htJyiI /kOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=mtp6rJXOuui30Q4sevue9KtjjtE2Je+TcSLTyrb3Qc8=; b=d0C6zPE0tuCMyeCLvfC1glPnmmfgApfSeMyQ6qM1tV9JlwMbA8labg8sjQrRgrpp0n HnvFRJaNtAOfOl+hEHjzwHIOgSOgC3DHGXP/c7DnQsIhclsltfeHvf4cEkp+gv3MP79D PGFFotA3aA3gPiGMG+nfh83tsb2pfAI3GBwWAbXaTJWJAS6yUSGvzsOVupeb74oYyX6B YH1rYeo+sycGZOGQVJx6oUfUg2LIhaLiVOqPcaCrF4Z2I8ozYX/rftN4v/bGJ9HBCMad Stn57bR7hy44im8ZQHIojNOfPu4KfyWy8yF4UrdQUR/SVMm68kVO/hAAaHDVQ2sx9+MO rCQA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qw26si9206141ejb.103.2019.11.27.04.02.42; Wed, 27 Nov 2019 04:03:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726664AbfK0MBZ (ORCPT + 99 others); Wed, 27 Nov 2019 07:01:25 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:33829 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726320AbfK0MBZ (ORCPT ); Wed, 27 Nov 2019 07:01:25 -0500 Received: from mail-lj1-f175.google.com ([209.85.208.175]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.145]) with ESMTPSA (Nemesis) id 1MdNHa-1i0sEt3cbA-00ZSA5; Wed, 27 Nov 2019 13:01:23 +0100 Received: by mail-lj1-f175.google.com with SMTP id e9so24143957ljp.13; Wed, 27 Nov 2019 04:01:23 -0800 (PST) X-Gm-Message-State: APjAAAXdfxNZTxo4BFqbIdYgtFU6ode9w7XHHPfXYUpJ/AEdBYqLNJbl uqtOGkrRlfxnHjGtqTdx9xVYhG7tT9Jf0b9twhI= X-Received: by 2002:a2e:5843:: with SMTP id x3mr618488ljd.64.1574856083341; Wed, 27 Nov 2019 04:01:23 -0800 (PST) MIME-Version: 1.0 References: <20191127090023.GA23040@infradead.org> In-Reply-To: <20191127090023.GA23040@infradead.org> From: Arnd Bergmann Date: Wed, 27 Nov 2019 13:01:06 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v6 0/4] Add MMC software queue support To: Christoph Hellwig Cc: Hannes Reinecke , "(Exiting) Baolin Wang" , Baolin Wang , Adrian Hunter , Ulf Hansson , Asutosh Das , Orson Zhai , Lyra Zhang , Linus Walleij , Vincent Guittot , linux-mmc , "linux-kernel@vger.kernel.org" , Hannes Reinecke , linux-block , Paolo Valente Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:580VDw310m+E7/f+vrcK74DySwXU+ECbb8b2LLqYcvyh+NajzFe RywynYTPpgG7GDg92DZwDXH+7Qygya89VEVeeC60PBJe1ujehCpMeFsflU0+MbOOa4uMXVE Mzjo7kHgTbxIgWGY3qm5mo4BnWOfd8lUv/D8yCr/1PH36RDiucM7j62/WxPW9D/HHknY/5b +YOUAopbaSrLa6R7evbAA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:UcZAd24DVs4=:hJxrFWDIxCWki3o/hlc67j LEAomg2FJxMOTy02+HbjOTFbDy2zx9e7YQIkhDBSRXur9RkXjFAO0yIvGDr4IvIw2Mo1dz5SB 016E03fciBajyv20XIy7Y+1jzW4uyTvj5ntGTzsUPBuJZNgXwP4do7ywWwtREdyOCPaVol25y jvlBPfAp/hjz9K5D8LEctwx3NZDOywq8pDBvJ72du5GlAC5jFGhZu9IuIcHlbqFwBU7LYls3E LAN+bZBDPIpt+UKDOh3WBfnUH9L4uJwY0npLtvd3Ar+D8HIT9OMRvsJVfdw49gGMnMvlfEyyB k8AajG/suN4D4TJns8fA+sZtf2C37pnfjLtfXHujehoInk6LUOWofZvVqv0g8GwfeFkd7+dwr li76EYIREMO8Z49BSDYPxTrdsT9LYYyzIo0SZbFht0Ygk8yC+VMvJA4JMYaCs4aT6aqVzmX97 e0mtDxnAlyDVwMrxEo/9XsoZKAe7NE/omu6C5oLkUrqWr7zS28Ee1/ZaHirrZb8rAxRoa+IYy t6p5GH9VynkHxdq42Mq+ELVOaGVeytmNexazzvbFpo0vViOTSufJNfm5xsXhA+wCoTUq4LVzi qz022NktdMaVcbjOn5C3pyHjAQ27l5/hUcRF9XGiqYXFJCFmmBklDSLMGzKued/wSbvWo9mZy R8Yt6mHzGM380Rl3pVSoNd3A/XuxqNwQntS7EcqJul4vEHkkYrnSlm883XePUUAjuI89NLXXF xpT/18Nnf/ldcy3Pz3bZCkvNK2jlHdAg02JFk9flZvX9VoaHpwkiIQi/0jSTIvV7OK0vxk3Ue l41+VDeL7dI0nUiNQPK+gJ+gtXBd/StkXL8kpj2XlGPdn0yHr3agj/YRilzTU3AVJwVDuLhqB 6syMOS+dqSA3T2duvarw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 27, 2019 at 10:00 AM Christoph Hellwig wrote: > > On Tue, Nov 26, 2019 at 12:17:15PM +0100, Hannes Reinecke wrote: > If requests are batched enough we could just drain > and switch every time an other partition access comes in. Especially > so if people only use partitions for boot partitions and other rarely > used areas. We only support a single user partition plus up to two boot partitions that are accessed rarely, I don't think there is any reason to optimize switching between them. The only change that I think we need here is to change the partition switch from something that is done synchronously during ->queue_rq() to something that fits better into normal scheme of sending a cmd to the device, returning BLK_STS_RESOURCE from ->queue_rq. Possibly this could even be turned into a standard struct request that is added between two normal requests for different partitions at some point, if this simplifies the logic (I suspect it won't, but it may be worth a try). Arnd