Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753415AbcLMJHH (ORCPT ); Tue, 13 Dec 2016 04:07:07 -0500 Received: from mail-co1nam03on0061.outbound.protection.outlook.com ([104.47.40.61]:2400 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752575AbcLMJHE (ORCPT ); Tue, 13 Dec 2016 04:07:04 -0500 X-Greylist: delayed 893 seconds by postgrey-1.27 at vger.kernel.org; Tue, 13 Dec 2016 04:07:04 EST Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Bart.VanAssche@sandisk.com; Subject: Re: [PATCH 2/7] blk-mq: abstract out blk_mq_dispatch_rq_list() helper To: Jens Axboe , , , References: <1481228005-9245-1-git-send-email-axboe@fb.com> <1481228005-9245-3-git-send-email-axboe@fb.com> CC: , From: Bart Van Assche Message-ID: <2405d895-721d-6ae4-4f9f-4b3353452efc@sandisk.com> Date: Tue, 13 Dec 2016 09:51:58 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 MIME-Version: 1.0 In-Reply-To: <1481228005-9245-3-git-send-email-axboe@fb.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [178.117.55.239] X-ClientProxiedBy: DB5PR03CA0008.eurprd03.prod.outlook.com (10.162.150.18) To BLUPR02MB1681.namprd02.prod.outlook.com (10.162.213.23) X-MS-Office365-Filtering-Correlation-Id: a99c1030-7475-44fa-16dc-08d4233552d1 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:BLUPR02MB1681; X-Microsoft-Exchange-Diagnostics: 1;BLUPR02MB1681;3:4AzeH9IP3KuYpJH8oS0EwniPAZhxPAslob5CCBBXs9mkf/unlMV6QyqUshf1Y2u7ZI3Kol3LUkQlz/eohsjIibxwDj1xHowp3JoYIxgpCTFaxxDP1p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FtJ+MwhAToAv8YISQTbzrQ8Ny74DEGcKhzwDyA1M6eSaq7y9wiHCP+7/evek/tQPX+/RcMBSBsMyqyDodgbwLcw+CDxqnhSRDP1sgcaE/5dFmhokv07UJkTlldswm8+Z0P6MjcQMy8aMbWqfqJxjDzvKqKkF0pr2wiwnRZsD4acJdqfsQGk4jr9K4QuPT6sbcoZLGr60k4i1yo9+B7O2uvJXkMD0dgiuOFS4we6WYf6dJQcJqmWte9A2FmnPmundNcP2Q6GU=;20:cEgjydMZd/USEMwUcYMCd2V4dpRRg2pfeZYKlHnIisc9esZljC34ZR/6o8LLpdFsg5yrWMR8YdBJSPvchvmeV38Pu/Vzun6FVCOFxUOLAJsU7AZQIH0HBJil0cbI3EiOKNy8v1habyOJF1onnaVT6V2p5e1/cs7IrXTzAssRU2Zptn7D53SZjtQJUFxJQfp/99zpjJ55AhU1MiTTpWKeFV1qKxgUspMvlFptgGJoEIUFilJd0Vsrz3UBQPE4MXKg/kOvZ61tiOOPTU/2pF08G+d1cKEm7EtlcVqpxlMIt1PwP5DYzfggUU0kOK7ktBx1sfCYAFJCfSC+QnUkEqVuYzeiy+gyhmlb+U9tu05yK2le75fUb4ER2eQxHibc9oWn3tIuEDyTnHVhDDCfuA5tg/+ixcM7xoQAmmbyQST2Tcrm75wCZ2bbtebd5fawZmJWlO6DA4EegJU35lD6v4cdAN79kyIX2Jx7VD3nlbK2hRNSrfqfywVwXbbVn3bDI1ku X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123560025)(20161123555025)(20161123564025)(20161123562025)(6072148);SRVR:BLUPR02MB1681;BCL:0;PCL:0;RULEID:;SRVR:BLUPR02MB1681; X-Microsoft-Exchange-Diagnostics: 1;BLUPR02MB1681;4:9E08a2iT+o+gCQUZJNT5vPXBFjblyd5JyUSLy26dfIdIUvLPRvQPW6vTRV/SLsZR58FF5375tfp2CABsmvTNzedWw6h1MgOTlehpCzLnATtPh855nszFrzB1qzH/bCL/Kh+tiNgHhBnZ1h9OScztGyX5SE0GGvs1jLVhb2ix2NOy3PUbC2VTfDSm5KcBtrxoOlqnuqtvDtREXm5MKhikEax2LUY4xq17m9fPFfr8QLarGmr7HO8GS2DYBbKqj7IC/x/HqN7mqyAkOXh3NLaafyli/E67e4A1VSly9CcnY3UOTJUvjdHflT1K6Cq2r40AW4HH4H7MixRSibK/THV5WJmrJR3WTs87Z8UdqBrJ0VKG367So1PSq4ymhsf2X+FMEzG24hofEPbvNXQe6o8bOEliKHLkwfmIwBRFbAlp4Vqo7HJY+AAzA8K4Yr/lqsvHwpmMkTi6YTrl1LqkpafG35mM1M8VIzWy2EF05MyWeBA4IkJvp4yDU/rXWiYWxql28AxhaKfVVd1YjqV/8l3+8fGhTg+pCmPujTEwx/TpCKiXag9LSO+rWIfSAhJE1gpsu/uRgQNcTX9ix5ii9uXp2w== X-Forefront-PRVS: 01559F388D X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(7916002)(39410400002)(39450400003)(39860400002)(39850400002)(39840400002)(199003)(24454002)(377454003)(189002)(54356999)(229853002)(92566002)(50986999)(4001350100001)(23746002)(3846002)(65826007)(6116002)(38730400001)(76176999)(4326007)(189998001)(5001770100001)(50466002)(106356001)(7736002)(305945005)(97736004)(83506001)(6486002)(53416004)(65806001)(65956001)(69596002)(64126003)(5660300001)(66066001)(47776003)(31696002)(6666003)(8676002)(81166006)(33646002)(101416001)(68736007)(2950100002)(81156014)(31686004)(2906002)(42186005)(230700001)(36756003)(86362001)(105586002)(2201001)(2101003);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR02MB1681;H:exp-402881.sandisk.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;BLUPR02MB1681;23:0yXCgBqLeF/r6/ZlOqFGQM0FmDmDJ199+O5Th?= =?Windows-1252?Q?jhpQ1BAMSL94JZoH1mhvuz9Nl8M7cQ2avy84VvK+VGp03sRj1vqbFUvv?= =?Windows-1252?Q?E3fAG3oSyLTgWqqMo8kShUIZsHOSnvyIsDa+dqVeB2wWyz/7FTVe7xM4?= =?Windows-1252?Q?4fmgm0HI20F0AgEOCjXsys+kTvPGjz22NXcdn9sIXvNk6uof49BWe8Ig?= =?Windows-1252?Q?G3i8vbRxLEL+tT3HSaPgzRfQdBuEfWmmy00kLAHPHRfFmXq0++c9mARG?= =?Windows-1252?Q?TdkDwULzy4L6gO3bnD3DDBFFuMNv2TagtDkOnclH4ZUsVND5yFRNeVYO?= =?Windows-1252?Q?tpj9jYeDqVR3LmfxSbiwi6vDLworEUOSdAqydb1DwiTjYKMI77mf9RmO?= =?Windows-1252?Q?YRPaILgXSnesyI0GuPFmS2TdoD/SwVAQ5l5nVBMv73dkjxKYj4TljXg+?= =?Windows-1252?Q?QS9vd14WR+d3JkCRdXBblQdXgdgZt6dbUQzEOZwUfOc2KLcifvjniZme?= =?Windows-1252?Q?/l9/vEDhNu8mct8igXjgj9ZPz+ljXq4/fAcKzjx5AY3UQuKLvpCuukLS?= =?Windows-1252?Q?F8YE7adoTGH0RZdBzLi615I7dP8rvo1eYnmtcnBhd935dDGs77zLdCjL?= =?Windows-1252?Q?jKpsaC2QGBRmHb1IcVlZ0teYVnuV8G6cytNMZvdpBXEa07m3OLMlb4rl?= =?Windows-1252?Q?E3EU8v0ib8UpkyibUFxfB7dv2+2rNOE19J9INOOhoPL0TEIlOK8aNm41?= =?Windows-1252?Q?mOBY70yTmVS6w+5LvVEOXlJzdhtmD46htLbc8aLR06e96CqDUKwJV+1U?= =?Windows-1252?Q?A5I2A3bj/xM+MUUkzcoF2pkqnwOv8AKbMwNGUZka3ezazLMJyklmi3tO?= =?Windows-1252?Q?3tAAdq5iNqEA0ayawtRq+w5Vp1BvYvftfqOLLY2o7GulAE2/Bk8gA+Mw?= =?Windows-1252?Q?n/S2gwzsQ/OF/2u8RJBgRa5fUL/N47yitTx8J9JAbnk5ahRbkNo4mjwL?= =?Windows-1252?Q?pVUQq43toWao9x9lWtj6ofVL3RaJBOgeH/tOo8Bdw92OwLbt6htoeRKq?= =?Windows-1252?Q?JXJO/bqJeUsFFnTIhT0ocqIxCMe9YBYY4NmRKHlK+CBL3oZHJ7Uigfwu?= =?Windows-1252?Q?yyENAp1b02WjKwYBVOLw5lzo24X9OOFRvjmP+IQADA0WDqflksK6dfs+?= =?Windows-1252?Q?d6qpIwkSXTip7pBw7X3tP2SBfKjUcUAEXDmV/g9oxVo6VjLd0dm6sIaB?= =?Windows-1252?Q?FGX+vaYY+NyJiOR902nYTUzixcz3dRYRVdBPYkmRfUvEK8q4b3hyJa0t?= =?Windows-1252?Q?TwqruBVWZOdHfv1uTIS7Myml2a4gskr74sQbaqL5n9ZHHgFm0mL82e51?= =?Windows-1252?Q?3Q4A2/aggKrzKYmsJ4OAZO36fxHgZtDu6FhYiefttS0q8v8JCs9TBqEk?= =?Windows-1252?Q?sjw10pWQjVB9RFYVfmFJYdKUxaBf/phJK7kVAwjqy0C9MatkFdeU17Mg?= =?Windows-1252?Q?cJchXU6B7O5bvdEHhbM73SDnOvX2cbusxhPDJs7DGDu3E1QHzjU1mDYy?= =?Windows-1252?Q?u6oqMgl7Jfd35E=3D?= X-Microsoft-Exchange-Diagnostics: 1;BLUPR02MB1681;6:XLEUULfpskteJbtOYzdNvXPrS1XRGLE5drw2/tYglu1GeKs46LYpX6V1NeqKccJs5J9eeAEPsdOWQtVMa35HWOqjOT5NKEFaGvhqZqCF+8J5KopEwVDtJJMbGt/yK01XZukL4KtPhkWMwO/uPix9k8kZO8q9PBJaMfp3+DbyYeRpRM06dMObNuckagnufsdVhNYviWfn8cSTorDaYkzIRhw6xt6EMFAIsWFQGGfgcGtHWK70k7kqXUNv0mHD1/ZN1bWUXuUUFK6C2QHSyguFz+t1oT7Sb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eNiv+rikLcYmXu3FFdwshnDxEwq6cCzS1KbabU3zzWYqqlWhdBhvn0BN+/5vJLICwQldYE8vOamGlkKjdJiOjVZUUfqD0mBLYOMjw7t8hGrk0K9nFWUU3hIBBs0/38gDnFu8w1oSxFQTq2YuPycsk2m+iPXXVKPQLi6xfU9Yd4W96nTXznPrwihX X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2016 08:52:08.6107 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR02MB1681 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 341 Lines: 13 On 12/08/2016 09:13 PM, Jens Axboe wrote: > +static void blk_mq_process_rq_list(struct blk_mq_hw_ctx *hctx) > +{ > + LIST_HEAD(rq_list); > + LIST_HEAD(driver_list); Hello Jens, driver_list is not used in this function so please consider removing that variable from blk_mq_process_rq_list(). Otherwise this patch looks fine to me. Bart.