Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp297878rwi; Wed, 26 Oct 2022 00:41:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Y2/j0s2y+XggjIrqiij9duS9OdEeY3POzQdo+v8J0J8MWbzT9/Q5+cPvYS/9yDFFp2GiM X-Received: by 2002:a05:6402:370c:b0:453:9fab:1b53 with SMTP id ek12-20020a056402370c00b004539fab1b53mr40648101edb.28.1666770098765; Wed, 26 Oct 2022 00:41:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666770098; cv=none; d=google.com; s=arc-20160816; b=vwAG1ytf/MYLFpZtfEIlboH1oI1Ze4C1kU3l3xG8Eqaium146N7Gy5PY3Mhtkw1zvM RM8bzXKR8hhewMcGLT3EBDFY675JlkiDFJ53qmI5LFtMR27uyo7FrazJn/POb9+LY0bV 6i/M5/Bj1EQKotbvIoJCL7woahdb4uTaom/H9/621GgisUs2UCRNMG/6spzwg38Mm7Vi yrl2Onrg3KjEvujdPUQsOXBmQvgat0uVOQNTEDLLpV0It6DU/CbjKWS3JPI2q3X42757 kkdyMj3KrxYR0bW9Bt/cattGbzvsQh7kFO7kPQZdz3WYsHni2b9iEb7rNQBtdKKXX3RN i0RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=DVGytUZmmsxInr8+vcBelLQ8Gk8NTR0Sq/XS4JYKpOo=; b=jwGCgsZc3fwJ2yrydqJTIK2QasXFoqupd4SK/LmCOCa29aI3aSxhZN2Plib4kNYenl bECqxQc8V4I7lrcM+lWsKD27tcjj3F1wZIA2l6KyT6C1zTMC6+YMQDwhYQRhdE5cuBar jV8KDLHYCDxHUHxcz/kVcC2kXZU9iJJd4r6QBmX9+hZiwChU5wEovVDr/RCrYLuWivLP 9IEWWrmdavLEh/IT1nO050NXzT7Gkz+8KRC1NerqrlE6AZwuYVFvGlf8W/0B2zn2KUne IgsqIzl48Z72KtlTle2SJvSZdcRF0CF2IZVW0rrw7Yl+5bkI07Wx6XP3M28OrM4SCOiJ FYzw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hyperstone.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dp20-20020a170906c15400b00781f51771b6si5956530ejc.900.2022.10.26.00.41.11; Wed, 26 Oct 2022 00:41:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hyperstone.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231476AbiJZHaw convert rfc822-to-8bit (ORCPT + 99 others); Wed, 26 Oct 2022 03:30:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232992AbiJZHat (ORCPT ); Wed, 26 Oct 2022 03:30:49 -0400 Received: from mail5.swissbit.com (mail5.swissbit.com [148.251.244.252]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 074D76B8E7; Wed, 26 Oct 2022 00:30:40 -0700 (PDT) Received: from mail5.swissbit.com (localhost [127.0.0.1]) by DDEI (Postfix) with ESMTP id 9DBD53A1CC6; Wed, 26 Oct 2022 09:30:38 +0200 (CEST) Received: from mail5.swissbit.com (localhost [127.0.0.1]) by DDEI (Postfix) with ESMTP id 82FBC3A19AE; Wed, 26 Oct 2022 09:30:38 +0200 (CEST) X-TM-AS-ERS: 10.149.2.42-127.5.254.253 X-TM-AS-SMTP: 1.0 ZXguc3dpc3NiaXQuY29t Y2xvZWhsZUBoeXBlcnN0b25lLmNvbQ== X-DDEI-TLS-USAGE: Used Received: from ex.swissbit.com (sbdeex04.sbitdom.lan [10.149.2.42]) by mail5.swissbit.com (Postfix) with ESMTPS; Wed, 26 Oct 2022 09:30:38 +0200 (CEST) Received: from sbdeex04.sbitdom.lan (10.149.2.42) by sbdeex04.sbitdom.lan (10.149.2.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.9; Wed, 26 Oct 2022 09:30:38 +0200 Received: from sbdeex04.sbitdom.lan ([fe80::2047:4968:b5a0:1818]) by sbdeex04.sbitdom.lan ([fe80::2047:4968:b5a0:1818%9]) with mapi id 15.02.1118.009; Wed, 26 Oct 2022 09:30:37 +0200 From: =?iso-8859-1?Q?Christian_L=F6hle?= To: "axboe@kernel.dk" , "ulf.hansson@linaro.org" , "linux-mmc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-block@vger.kernel.org" CC: Avri Altman , "adrian.hunter@intel.com" , "vincent.whitchurch@axis.com" , =?iso-8859-1?Q?Christian_L=F6hle?= Subject: [PATCH 0/3] mmc: Improve block layer requeueing behavior Thread-Topic: [PATCH 0/3] mmc: Improve block layer requeueing behavior Thread-Index: AdjpC+qWoltr9IdKRm6wj2+qCOUtNQ== Date: Wed, 26 Oct 2022 07:30:37 +0000 Message-ID: Accept-Language: en-US, de-DE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.153.3.46] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-TMASE-Version: DDEI-5.1-9.0.1002-27224.006 X-TMASE-Result: 10--3.793700-10.000000 X-TMASE-MatchedRID: oCMH03eFz6AT3Cigx7DwIS+6f/7y7+GzFlIP4ZuPPchnyL8x0tKlO4Tw qzKAP6T8Y1mVlKjrUUzx+Rm6PSeis1IQLOwNk2UvngIgpj8eDcCLbopAC1KZxsavT21DsLD/UEh Wy9W70AEgBwKKRHe+r/QKUBFsa3vLup+A4QN6tct8Y/9k3xu3fim3yzlbq0uK2MIkLxRxv00= X-TMASE-SNAP-Result: 1.821001.0001-0-1-22:0,33:0,34:0-0 X-TMASE-INERTIA: 0-0;;;; X-TMASE-XGENCLOUD: 381ae854-77e1-480e-8e83-5757b9225b54-0-0-200-0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mmcblk relies on block layer requeueing to fulfill some requests under certain conditions. Improve the handling to get nicely ordered requests. Using the terms a bit loosely to get a point across: Current behavior for 512 blksz and max_blk_count = 1 the scenario would be as follows: - request for page 0 lba 0 to 7 - request for page 1 lba 8 to 15 - request for page 2 lba 16 to 23 - request for page 3 lba 24 to 31 mmcblk modifies data->blocks = 1 for each and requeues, this leads to: Access lba 0 Access lba 8 Access lba 16 Access lba 24 Access lba 1 (1. Requeue for page 0) Access lba 9 (1. Requeue for page 1) Access lba 17 (1. Requeue for page 2) Access lba 25 (1. Requeue for page 3) Access lba 2 (2. Requeue for page 0) ... Of course we would rather have lbas consecutive. Hyperstone GmbH | Reichenaustr. 39a | 78467 Konstanz Managing Director: Dr. Jan Peter Berns. Commercial register of local courts: Freiburg HRB381782