Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932960AbcLMLEW (ORCPT ); Tue, 13 Dec 2016 06:04:22 -0500 Received: from mail-cys01nam02on0088.outbound.protection.outlook.com ([104.47.37.88]:1030 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932633AbcLMLER (ORCPT ); Tue, 13 Dec 2016 06:04:17 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Bart.VanAssche@sandisk.com; Subject: Re: [PATCH 6/7] mq-deadline: add blk-mq adaptation of the deadline IO scheduler To: Jens Axboe , , , References: <1481228005-9245-1-git-send-email-axboe@fb.com> <1481228005-9245-7-git-send-email-axboe@fb.com> CC: , From: Bart Van Assche Message-ID: <1ef97a97-d72b-a86b-1ddd-0c4c5ace8027@sandisk.com> Date: Tue, 13 Dec 2016 12:04:01 +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-7-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: DB6PR0301CA0061.eurprd03.prod.outlook.com (10.168.69.29) To SN1PR02MB1693.namprd02.prod.outlook.com (10.162.129.23) X-MS-Office365-Filtering-Correlation-Id: 64fdf7f5-0113-41db-f9fd-08d42347c559 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:SN1PR02MB1693; X-Microsoft-Exchange-Diagnostics: 1;SN1PR02MB1693;3:UsWmHJ5ZNNIGGU2hv8pimAEXluOeTJinahE3kx8krLv7cj0zklchqME1MPvuzURZKvR6Dzdy67u29S9lkyqGLK/MaIHRLgjnBbK650fhtDUMsLxziTuh9v4r7PUqG3sszGA0NGYSr4lT7/D4JMM9RJGd/FJIe2570MHi2s9QWyxeTxO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Qll2lxWuBSKJ1eUkjmwjXXHmOAhsn6Z9GApQbClrH2fiolv1ZGHcpiEIw1qVWlASHTpLCiFK9YZFzduwkALbbGVccQUm6cn1oqPwAdGetg7sb/Om/GsUBn0N4kr9IEzweUH2pWxbTPvn2xoaF68kJeIomDzbrSfxK+iwmxAxHJlgAO80/wC/M5dVz38jl2ZzBszXjZSc1GwEgNIPcJDpJD36NNIrlbi5w/Ou0P7hUPlfC7JBCzJi+j8ldlkQNX/bCc+dP49AkUEJRd75JxOioYKMd55ZKbL0cTchN8DrUk1I7N6nk0fayQ/bseoduZFpaDAyv927M8DKWF587dCHxyVTMzG9TZLKotIZ49Q1fKUcN5Zic9xL51IX05 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)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123555025)(20161123562025)(20161123564025)(20161123558021)(6072148);SRVR:SN1PR02MB1693;BCL:0;PCL:0;RULEID:;SRVR:SN1PR02MB1693; X-Microsoft-Exchange-Diagnostics: 1;SN1PR02MB1693;4:W4JVTlkPQyygcSjjlzVgycsdCO98zOuyUXjb+s+pjM9UCw0XwNsSTCBqP0feasYwk6G1oo4nycEgbRmnSGkrbbg46B82kHGm1L6bnmBeKgvBBzbOjGapEDSU18kKAvEXmZaqiZNnepo24azZQR3E3Rm1WEO4cYXLNLBA7yiM1c7aM1k9eDWGU6mPNoLWvvXi2gsdCfjp1W1RW2JDjMKPYNhGV/RmdLwJE5Z/Hghusk0pmN5x1wMmdNm73asvSEhwYzckxLUVGs5iXMYofDpwMHmIPWwuq3E6wXRWyiqkERwO7EGPVIys4SIcnK95YOGkcA/s+5sHz/YUEhij1aztOkRO6QSSWBW9CCMJ2kEnPOYXm1IqkWa9esOeJSI9vp5mW/TFuGejWxyk9Y1TTzFG+ClwVfUSHFizS5m/ILD7P4K/1jQTRaMwxqJ55SFC1pEupiYpJqifm76HeAcf5NEBwJzaiiGqSU6+HDBZ+NNuNQv79VMXU2XA1wPN5UhjSMWbnrK70b/l84f8rUaOTG7056tEds1aDN1Zb3mRhh+vK7qnpGE3nuF3rEa/YcAOt+YYgUsJAAH51cMZMADSkUE7TeNq5be7KdHer6Yd/J1BQ2PnLZnFRxwbe3pEVaCh5pEo X-Forefront-PRVS: 01559F388D X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(979002)(6009001)(7916002)(39840400002)(39860400002)(39850400002)(39410400002)(39450400003)(24454002)(199003)(377454003)(189002)(23746002)(36756003)(69596002)(305945005)(7736002)(68736007)(230700001)(42186005)(53416004)(189998001)(81156014)(81166006)(5001770100001)(47776003)(92566002)(83506001)(4001350100001)(66066001)(65956001)(65806001)(33646002)(105586002)(97736004)(86362001)(2201001)(2906002)(65826007)(5660300001)(50466002)(54356999)(76176999)(50986999)(229853002)(3846002)(6116002)(64126003)(38730400001)(6486002)(31686004)(101416001)(6666003)(31696002)(4326007)(8676002)(2950100002)(106356001)(2101003)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR02MB1693;H:exp-402881.sandisk.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;SN1PR02MB1693;23:SGsGehO4vg0sIiFXbg0nE0iZ6F4VuVYKTsiR2?= =?Windows-1252?Q?eR1y0MSjSe+T9AeCKPsnryXByA2wMaYkmQB+283B4bpNqEMBctXVXCcm?= =?Windows-1252?Q?s9wGPoKVt3Y8n7RaaW4yA/g1iPSN4IEx2bLBlblrWBGi2U5ykF7/uFGc?= =?Windows-1252?Q?2RDCWE5q0onYYVYaBAqnPcvHHWtDxhnEKdiDABlqzDPbLk05nyP71Yfs?= =?Windows-1252?Q?OQ6zHFSBSSy0iUkZxeaW9sxa1stZcUW6zvyUmGTrDpGutAkdzDhOpZOv?= =?Windows-1252?Q?2o4xOE2izNVKIwNeDJVcjKz/5DSmHGu8VOYWQJm4ftWF/Ag4O6P2eQl7?= =?Windows-1252?Q?F3LZgtHr4Bth4zeMJocV+ISkIcp/zQguTVL9yvypSCqOUknKMZ63q3ND?= =?Windows-1252?Q?aO1JD7G8lX2d8mRCCawMQCJbxECPrndg4mgl+JfUBIjWN7d8eZldFBnU?= =?Windows-1252?Q?4qVuFJp4IG90Eb56YmziD+fNdc2/gJ4ZGzSldhG0EGHJl0oUDUggACC1?= =?Windows-1252?Q?mmuOZ5zH5APzzfr3NkSgjmwiCkpUZtFgHXWX34tLBiNesgRVGhdhI21i?= =?Windows-1252?Q?HJfcWUqSwBOZQMVO9DPht5T8GzJqxO/a3iwJWlzEMlioc/FAkKNhQhqe?= =?Windows-1252?Q?7fir2aEGDzsAxFa45h95B9VLlGMoiyXWpt95WYQ9oakUX15UStfZZAj4?= =?Windows-1252?Q?rwWV5m2aPIUQ3BCTZDBAH2iT4YVQhhSpACsesZyyqK0cdU75CiNvyIzy?= =?Windows-1252?Q?2JkJINjmQqsgOgJ+h9mKssQzrM4yfDdxaobrrQfRhPm/v8u92mG7W4Ae?= =?Windows-1252?Q?eXc3kxMpYwcfE4THx+/KaWm0p9SBHpZFeXvxpPcNHEH4ty6y3RIBpeY4?= =?Windows-1252?Q?tXFZmM2LA/rPoSPLRYPPCv0b+lscHklq6XeiGFy1RxGGvErKL+EC1WbH?= =?Windows-1252?Q?O9r5XQBqrOFKngHPSB9l3t/Zz/fVzdZi3G639PVIBR3umbkLb+2SE6Nn?= =?Windows-1252?Q?T1atPa+O8XBIe7pQ8OnoSIt7qPrBvJsyd+bZtZtluNZP7akavpMJ/5i6?= =?Windows-1252?Q?Tk6BcTEuPAL3kr1lTVdCxgz1VOO61iiTMyFT0JUqA30eT8rdqRXWB0G0?= =?Windows-1252?Q?cau0QQC3VjNCa94cPZtnXqfPUTnXYnbqiS1+YbsiDEAiJmsoCSbjtiW7?= =?Windows-1252?Q?YQgJgPBWvgPpW4173hE61BBcYJ2qwwmTiOgyIJjumFuU4j8yvtvQ943q?= =?Windows-1252?Q?YakJJtgrs2Rr5wWUQbFd/C+3VJ5nbPMq9h1MvpH5eimVy50GAs5ZEEce?= =?Windows-1252?Q?PZcPAYQdKoPDQ27/884/vg81N7NMILADeQjCm/dr6NqSrfqCh5bSPBH6?= =?Windows-1252?Q?LM8FwJ/ruOYFc/dpNNqPueBUlwyQITD6QenMGljrXz/5t8Fw6MVLwYXw?= =?Windows-1252?Q?R0CH44Xt+Wbjf2fb4kZ9w0RUbNyIqAECR5CFWAd4vdd097k3+etcRyzn?= =?Windows-1252?Q?zemNI/XC5v6djHVQothw3dTyaJUROw8HoBq8mD1kKuoleVXa1CsoWE77?= =?Windows-1252?Q?MROx3Gng7kgJX/4GwWiB9XWVqj/oCjxQCS6ShSBx9tW7t8FAY544CLw2?= =?Windows-1252?Q?tMLkxBs61Z8R1ud2nUAKNdds3okPqAj1QiEsN/ri021?= X-Microsoft-Exchange-Diagnostics: 1;SN1PR02MB1693;6:SNDgu7nfA7RmGshQlqmVkxQI/Jxhin+fgcS6w6ZL1jrJexwXP4tFr5a0ggrqVs1a92KTMfJt2+7fmqwPNME8towfpkgw44NLhtgMeZVbh3bJ6FOYHGL4BVE4R+reiEweUye0ev5OOZWjXprNAPPlh/qZF10/YJKna2vJ3kWlV9FPMuyExhBAQhRazBMxlVgrY/tFIQDf5AM8+HiME0hQj65Jng2dGtBsvmI4EEMMkaqpfRviso+Kuy9codpEeo6eU7kY6FlNsjpRE0TGnE7ScW8YpmdXSvyNSs9MvuD4Y+ZRblI7woHSV8uKhV0GOxzphK1pL/LpkF8lEPhGl3kvPnbdtlUftYCY/3fglP12cEBDToavRz0hHK0xBZe2ysC8LuL6pQpbZd3PuSqb6eCwKEW8muM53Xld1DCxC/9xyVtUKDBRgjxhGk4CAjfV7rmcdDydKIwU/fyB+q0korv49g==;5:K6M6V3y/GJe3g7qUan6EyYPcddSC2d5qOJVy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sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2016 11:04:11.3580 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR02MB1693 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 668 Lines: 31 On 12/08/2016 09:13 PM, Jens Axboe wrote: > +static int dd_init_queue(struct request_queue *q, struct elevator_type *e) > +{ > + struct deadline_data *dd; > + struct elevator_queue *eq; > + > + eq = elevator_alloc(q, e); > + if (!eq) > + return -ENOMEM; > + > + dd = kzalloc_node(sizeof(*dd), GFP_KERNEL, q->node); > + if (!dd) { > + kobject_put(&eq->kobj); > + return -ENOMEM; > + } > + eq->elevator_data = dd; > + > + dd->tags = blk_mq_sched_alloc_requests(256, q->node); > + if (!dd->tags) { > + kfree(dd); > + kobject_put(&eq->kobj); > + return -ENOMEM; > + } Hello Jens, Please add a comment that explains where the number 256 comes from. Thanks, Bart.