Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754742AbcKDEBl (ORCPT ); Fri, 4 Nov 2016 00:01:41 -0400 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:46240 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753180AbcKDEBi (ORCPT ); Fri, 4 Nov 2016 00:01:38 -0400 Subject: Re: [PATCH V2 2/2] blk-mq: immediately dispatch big size request To: Shaohua Li , Christoph Hellwig References: <05e8cb8c7e09903c7db36e81a6bbd0b39b24deff.1478217670.git.shli@fb.com> <6297c9a39cf21c94c65d5a9b3a19e54ba5b8b573.1478217671.git.shli@fb.com> <20161104000954.GA10266@infradead.org> <20161104001353.GA58908@omida-mbp.local.dhcp.thefacebook.com> CC: , , From: Jens Axboe Message-ID: <32bef0f6-c194-e31e-3a85-5aa21a6e81a4@fb.com> Date: Thu, 3 Nov 2016 22:00:58 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161104001353.GA58908@omida-mbp.local.dhcp.thefacebook.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [64.134.26.173] X-ClientProxiedBy: BLUPR08CA0063.namprd08.prod.outlook.com (10.141.200.43) To BN6PR15MB1187.namprd15.prod.outlook.com (10.172.205.141) X-MS-Office365-Filtering-Correlation-Id: 6f65ffe0-7c9e-413a-0733-08d40467331c X-Microsoft-Exchange-Diagnostics: 1;BN6PR15MB1187;2:vsHreho+HiHVsQsTb48jZWKzKvx4CVBbmQ3XBfx1I6FOY2qXjhJaLZxOngbJ23/XXhPP/CRO+zLmmVWiwn2NDROvutKzLRCHfp5qr99TZHQvHbp5BcXsZyRl+1N0RHtfPN/HZh3JI4VKSrGwbbC0pSBI3XrFjB3JYh8aoUiP9oHZXDY+CkOd3zaXD7anUP2GxHe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yb0wIPAG8wjD+9FEpfHdTNB5ro/S8sdU9Xg3mmI+B0a/fnO8Qw5AoNtl6PpNutnRbThAmqsB/mu7oHdXcjLW2btsGk9v+P3zJFk07K9Crg61v7kPrUQHVEt7R8oDvzDsaBqtyowfXIKaxLBdUIcDjw/xj96lyThoQJTi/gQ0Fg7iAs/ncKm8UgnVFMAJBJLm9Y5aHsvyqhrfc2lLwNUvSErEgQYk/SkMGDB72XSV3MHVgELXQ4FZy4GOSyrmr5A==;20:4Hb+84kMAucB9mH/1CcIkyRfMTiX3mviVLrGdn4pmjxjuwGNGtVtzaNjMXxH+eR+nRGRilama68PmD71PgGiZV+4GENctNrp7R5hZnytPcyFQH/pGr/syW3lmLMLeC13fXGAi9E8zjNB7HgUl/VbXULXcfe9vzv3pm0N3qw2+Ng=;4:TF+1B9Fm7d/dgBKZJ8oEYzDJ4bJRqJl7WDlF0k6wY7KmxDtW6O0WOhmQI31rj2sefqIlrSr1wv2fWB001oeBblxGswGBHwonPZ7FStzPGh52noc9u8GTliHf3OO6Jfonml752e+EUqz2riTh7MmOGomuZSI0T9eAl7uFeandqCVs1TSOtGmrTEFzpg9bs9yTXlK0Yv9W0Yfdh/PNO3cEWG1ULaSna2xr5zQxTF6kZsxMUYbPkVgiU9mnVM1mvzFYzT+iKsq7vZr0GyGpVGfoc+reurknuYhlvsW669Wkit3B6ohnPI2RRwtZrXljcBQc7U/Nbbwsm+Nkh0U/2a+2V1HFmq1eHMtXIpvo4i07R6ke/Okc/gtLCqbthaCK/pstZURvI1M9jx14mNgTTIquuA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001);SRVR:BN6PR15MB1187;BCL:0;PCL:0;RULEID:;SRVR:BN6PR15MB1187; X-Forefront-PRVS: 01165471DB X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(6049001)(7916002)(377454003)(199003)(189002)(24454002)(4326007)(5660300001)(97736004)(117156001)(36756003)(5001770100001)(83506001)(6666003)(31696002)(65826007)(2906002)(189998001)(2950100002)(7846002)(7736002)(4001350100001)(305945005)(93886004)(86362001)(586003)(68736007)(92566002)(8676002)(23746002)(54356999)(66066001)(33646002)(81166006)(76176999)(47776003)(81156014)(50986999)(65806001)(77096005)(65956001)(101416001)(230700001)(106356001)(64126003)(42186005)(6116002)(3846002)(105586002)(31686004)(50466002)(14773001);DIR:OUT;SFP:1102;SCL:1;SRVR:BN6PR15MB1187;H:[192.168.6.194];FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;BN6PR15MB1187;23:QpIe0UyCfeHyNJ4NN/N6uhYprCL2WY/0cobt2?= =?Windows-1252?Q?4+OdmMmtvsXvMPtYxLZSNyiTWL1NbG3I1409Oqf9R8AY4ZqDGVZPLyVJ?= =?Windows-1252?Q?t19c3EVdWGE339L47/ardVQkQ9TulUADuMcV05Ae2J+6JtfCF8fp+fFU?= =?Windows-1252?Q?yfLCvjVUcxi8clqpPjgEJeHiVxeE/Rx9nh9Iu5Y2WXRlGmpzt3gchDhM?= =?Windows-1252?Q?0KeKl1FhFBbApeBwohLQwK7FKNI7jOT/7SZuTMbvbW06hrzMiOx8cuFP?= =?Windows-1252?Q?5nrrWVZ8AnKg2ZTOoydDGsmx++NRtPaDjHxuGQU/WDjI/OrzBJ3TInu5?= =?Windows-1252?Q?r47ybd4IZJpAeYZ20WtuMfbraG2rT72ti7YNi2TOh2xKQaj9MIc0Cls/?= =?Windows-1252?Q?D+EQVFY+x7Dpskmpzhb6oRxauWBvsNgixYLbCrVvdOQPeVvZ91tr4Ds0?= =?Windows-1252?Q?8wRtqFplM9pxC+1CyhFnRg8aZIfBBu385Tr+LZ1t1OKQluXT4ERgt/nw?= =?Windows-1252?Q?BewqJqpJ6tH22BZ4JBEYtZ6Tv9ucGWp3U2camlj/RwDHe/xSPvf5Vvor?= =?Windows-1252?Q?M7BeiyKNY/1YhrRLMMR5hFr9JloPfSbqUd1uDAX//ctCm97kCNBdi1Sa?= =?Windows-1252?Q?vB9qOCJ0BA+eP/R8wVyUjJMlLZKrOuJXEBB7XjEbGlpwpEOOOY7ltdbN?= =?Windows-1252?Q?hyzm31V596JaM5FZor95pLhvj/j5OU8qDjEcZhzLipSlR0jyV1Eddc14?= =?Windows-1252?Q?WUGeqHlrKInmI5l3ZtlYMtErvPLLA0w3a1XRnpUWea4M4sKhGljWC2gE?= =?Windows-1252?Q?DVvEu3y2q25nscH6D8CMuxcEnEjOtPSdRUttuWbx6sG+pUxf7KDVNo71?= =?Windows-1252?Q?RpnuTOm7wiuTIbJHQSrq5IXtj8exhgOFaDmJA3aDM2xAvRXSPkWU78g6?= =?Windows-1252?Q?o0Rca7Eb5ZIHK5iRoQGGsuCB0rP8nzwuU/96+eMkyHhWqA9fTaqeHAZg?= =?Windows-1252?Q?aKw4eCHH0AIgEY3c79GCnqCmJ1sjnZyz1x7p636M0uXOTtg5PEzUbkrw?= =?Windows-1252?Q?7BZ3feW6ybIKC98vXzh4ySdnvJl9xyIsklBppG3gEOXQjZMAgjvvjPQz?= =?Windows-1252?Q?ujUDHGMkafp/7oKb3oA4FB3gB87rj7W1uBLUP3wM46CKOSEQq1Odm60o?= =?Windows-1252?Q?kLyNtdrvd+pnlUbgoLOdq+qdOZPKI1jagOjZODZl6YMwHrW2A+SJlB3z?= =?Windows-1252?Q?/A5ojTAHrdtK7uS5PtMldC+3fsv45TmCRb4mD93y0RFh5OQr3G55FN7u?= =?Windows-1252?Q?r3T6ScXkIeTjtjG8TSE4FKSN9vzui2mOHcj83Uj5urQ96Nf6M//7NHrk?= =?Windows-1252?Q?kDBOe1+iBH/jP64L8dzu2vEa/BdyY+n2yhhnXdW3hKgU4T1N0bQhcqiy?= =?Windows-1252?Q?N3Y6ahj8qGPsb+XC4SX?= X-Microsoft-Ex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oD1CrwjMqQL+a3FCl1+h0zioj4UJE9v+NUvd/eqSH8JQUXYXkWv18mF31tL2yNLlNEVi0NsoDGjtxg2AWctAm9T5nM2W/HhHD/0AJj7NwsuPnhTi+CMFv08u10p7iU5MFYFsMbglRaIJuvIjtTQ= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2016 04:01:04.4473 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR15MB1187 X-OriginatorOrg: fb.com X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-11-04_02:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 696 Lines: 18 On 11/03/2016 06:13 PM, Shaohua Li wrote: > On Thu, Nov 03, 2016 at 05:09:54PM -0700, Christoph Hellwig wrote: >> On Thu, Nov 03, 2016 at 05:03:54PM -0700, Shaohua Li wrote: >>> This is corresponding part for blk-mq. Disk with multiple hardware >>> queues doesn't need this as we only hold 1 request at most. >> >> Any reason you only do this for the SQ and not the MQ case? > > Right above: > Disk with multiple hardware queues doesn't need this as we only hold 1 > request at most. I've applied 1-2 for 4.10, but we probably should look into unifying those parts of sq and mq in general. For instance, it doesn't seem to make a lot of sense why we'd depth limit sq and not mq. -- Jens Axboe