Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755389AbcLNJoj (ORCPT ); Wed, 14 Dec 2016 04:44:39 -0500 Received: from mail-co1nam03on0065.outbound.protection.outlook.com ([104.47.40.65]:33802 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755048AbcLNJnQ (ORCPT ); Wed, 14 Dec 2016 04:43:16 -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: Date: Wed, 14 Dec 2016 09:09:45 +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" Content-Transfer-Encoding: 7bit X-Originating-IP: [178.117.55.239] X-ClientProxiedBy: DB5PR03CA0007.eurprd03.prod.outlook.com (10.162.150.17) To BY2PR02MB1688.namprd02.prod.outlook.com (10.163.27.26) X-MS-Office365-Filtering-Correlation-Id: f77527d0-9180-439e-c4e3-08d423f89881 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:BY2PR02MB1688; X-Microsoft-Exchange-Diagnostics: 1;BY2PR02MB1688;3:bbMjLPbxMkgnQ+5mQt6TkFAQaJQIvxl7u3i7Bclw7JMHMpo0rSGGyEQyHh3zmzeMt172fwgG3ZJc3fE7G0Vl/lzSRfuogYh6xysj2SYKp69InXWf0Y545n8cpwL9m7c26jVSE+Nk/LL2/XC4S7y51asZlw/A/QOuhjkiw8C2uCMjSBPQT76glGtO7UM4HlNsgi4mKs82w8TJYgTuNpOye1LH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sAGzd7BwmxSfgrrOFl+mB4lE8izgDr6LG+8mJqbuTpYLJ24Xuw3KVAd0a4RQXWX6fxCkK4HNMblMvPi1K9yYzkLJhl0ELUI9IYoFFKTatxnqSiiVNNuqSRAKXxCz5adM0AUDYNwfpQ9EQ==;20:Gx6tu/aCYjp+q3fjVJyBYRdyHtrb0ZMlf5sAskuWXdlupWtox7NXwgAehobkvdsuQQRSR2atF4jMnDYPothyYLnqzf4B9VBKDzs3x6i5nYrFB3p0DQZ57Vk/x3OM3MI28ADSb5bwzL98dINgr43sCh4TfaE94S7AYWxIBoIy8aO6v49yHx7qLAV2OEy1SkSnz/6FVlnm5GrUTRoOBIsEiXxTnPnSdFpDstjRNJvQ4Vm1NxfEauo7bkps0u23J6sqEFm3OhyVzOYmrza5MWCsjwFTjl8s3I6UWDA+QVOPbUrQ+1sk95dzesi8I6IbL/MoVt/PXoAn8UbWjFplp9/gOhfCNMWFidZq5CcX9fyCQAvEdg5N5L88aIuXBYGaC7ax7unfiPPFNPjljVD2oHT/6Uh7kLz6b0YhugTfKMI8f7h8guaz6cJ+ggTSFQTlON9dlIRVj40oLkbC8xY5eXZ8DAvo0zI4Xm1bbl/CwtSTf+ZmqC44dnwAfKkUrrHLr0mT X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026)(6041248)(20161123555025)(20161123558021)(20161123560025)(20161123564025)(20161123562025)(6072148);SRVR:BY2PR02MB1688;BCL:0;PCL:0;RULEID:;SRVR:BY2PR02MB1688; X-Microsoft-Exchange-Diagnostics: 1;BY2PR02MB1688;4:AgnKcBV/Q6Rz+GSetvzgh1Jlkj8tk2QrY8RXdBG975IM8oGNL0R1rc6S0ce0eBVcDj+p31jsB5rGczrKy92f9IAtuo4+RvgInleKDmPmBZ5/Fm4HpZzSDyrYH68Zt5DpNFAGD1bYpz8lSPt9ZFnyzg7A9LMyDDKYyrpU+S0mXFUuN9SIid075hGiojdlfJ/j+sXRehb1eahooQOWOPZ4Axfds+XAsLLh5tPPj5M+4YAJ4v7cZUicEqUjaQoyKfzfHoDOAuVT4bUjwLqSUeeabdeqpEeLhXT6IrBX+EYBKLdZzyfz/QTZdXKZGC1pFVoTz46oT8NmZgTugG1DRpXv42+1/XjCP+KdyoigYm7hNX/RC+G3ZeOYfCrPXsqquvBqvu8YhCwAAZiV8T0z+pxXjI/cmWJdZQo7LSmGf3mdLt5SVmxCzByTyWhtQScAWH6kszu5XMTESb+eGlDDx2OR5O+Hm6o7UAIPrSLCJZK2U5F95vJP2xgSVEv2w2Xc2EBAaP4/t+5Rke568ndsaivTJ2LsFtdT8wg2KCV9rrgQ2vDL5D/BMNFWiV6WCaU8uaGX2TgdFDJXdzuVRDpkIm4vxid7thX8kF/iRI4rYO5JK4wqwm/sMqlx4nKhKY7Uylfo X-Forefront-PRVS: 01565FED4C X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(7916002)(39410400002)(39840400002)(39860400002)(39850400002)(39450400003)(199003)(24454002)(377454003)(189002)(64126003)(23746002)(5001770100001)(47776003)(97736004)(106356001)(230700001)(53416004)(92566002)(2906002)(36756003)(3846002)(50466002)(6116002)(189998001)(4001350100001)(76176999)(54356999)(50986999)(6666003)(105586002)(2950100002)(65956001)(66066001)(65806001)(83506001)(6486002)(229853002)(101416001)(69596002)(31696002)(2201001)(5660300001)(31686004)(42186005)(65826007)(86362001)(305945005)(68736007)(7736002)(33646002)(4326007)(8676002)(81156014)(81166006)(38730400001)(2101003);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR02MB1688;H:exp-402881.sandisk.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;BY2PR02MB1688;23:aW+9wCu2Zi4MY7SQuIKO11j4I3yqvIeoTNusQ?= =?Windows-1252?Q?vN1U1DXa1edQTxC3cZPPt3ohbjMQGRlVTohiwCvEmfSMCGUbbjBGtIxv?= =?Windows-1252?Q?YWbiXGvU+L5FEnn/kUNlzGvPjWdQH8TvTe5rlSdoaw4qZlzu9ovdCD2B?= =?Windows-1252?Q?N7DC7lWcZOUfb8zwAILitnXKtXzw/jjn4wBxIM/keTji05DVGZDeETmh?= =?Windows-1252?Q?TssOO8myreLjxJiGFQKcNHYJjZ54tESgLJlN6iuaWYeHKcKFXVPSSU5q?= =?Windows-1252?Q?3+cZw3I8Dw2eY6W+h1pXtfZ4TYrRP7vhMc9uhT+aLSek/o82AfXfqM06?= =?Windows-1252?Q?X6czGf7sc11BP1H63kpnFp6MHyDSSTmIPAtDT7FK95AG1SZelqtai96w?= =?Windows-1252?Q?TZwXcf/FQauyuszMj1n3qiaEpBm+1489V2Si0/tjDJjiNVGOboh5dE7T?= =?Windows-1252?Q?hBaV7DWIzVkv4TuF0B5Vqnq335Ftt93nwmJogfvOxCH3Lxu1EJzMo4m8?= =?Windows-1252?Q?3w7n9E7Tv3i2CrY88SBFEq+V7mBKUU6pxUiwmlN9Ll4f8QVCLdOVEFGV?= =?Windows-1252?Q?MsaPO1mgqy1MtbFmXGY7dT3OfaGnss5sOHjeqR+u9c72JP+Yd7utCyBX?= =?Windows-1252?Q?fmgdFDC7o0yBUfzMc8vlfqpeAYXDU6YbdqBamISlZWAWMl9f2RDjG/tR?= =?Windows-1252?Q?l83aCm0g+V0hisJoqR81en0NW4kgWYtXPBOXj12EPmYC6/4UO6pUakOf?= =?Windows-1252?Q?jq0tjPuhzCNRJiZ7iHzMbHeR1L/1r/OG8YfIb72oQdDxzkT26EreEtsA?= =?Windows-1252?Q?swWeM2iqU5Gw9JkMW4Z0iXsvhyeyZtHUQejXVqH2r+bPBo55ca0ERyPz?= =?Windows-1252?Q?cut0RgAdsX5L2z+pHfDx0NGnWR7nI0ZcKLM0/m6A3HWPikwAJM2FlQXi?= =?Windows-1252?Q?F1G5gY0/3zUH9hw7qe+k6VVNaUb/bLZ4yfk+pqmxxVQ6ZXg9r2W4Hvdv?= =?Windows-1252?Q?/A/eFTI36GATcyOLhmqOXGCVEUPn3f0zOkrjC1jiTXGWxRIE9uyr3TAx?= =?Windows-1252?Q?kGd3hT7MJY76mtKBZXs3mnOhml6kDBa1PBZGL8bcfqPtEnnwHOsbP5/G?= =?Windows-1252?Q?iAPAFV9zBTO9KIuicGW8nClY7+4kbFF0QI9EHEjLtWcQqiIIz0XxQziF?= =?Windows-1252?Q?GY/Zsn5IYAssnp0v7SX4AKZtFgEciY30N4iaFnlGvSGvvP1rvkS0Bm4Z?= =?Windows-1252?Q?ScSsHJilUeuMw+IhcjGXlCCf/kIGSUH5nwbHLyV7tG7I8Yo/DHVCN2Vs?= =?Windows-1252?Q?NW64QD7j5GFg6Eb1uPiwnRHWZPoUZ8UuiNTZG8Z4pjr6i1KBcCOze1Wq?= =?Windows-1252?Q?iuB8fv7XXupqoHuSm2LilKfBIWf2nAFogjVq82EUF7wojSxSUc2qnncn?= =?Windows-1252?Q?8Qdv2CMyZ+aWsVT+uYMY73ws36BKDhtIGCwpDYZvH4nEQTPil8zoosIw?= =?Windows-1252?Q?qzPChwCHZnIzlWnVXoDOD9a8g3CeK2QnxEUCJWurS2Xg24q+ldU+d4Pf?= =?Windows-1252?Q?+zMvgvIelO5HlE=3D?= X-Microsoft-Exchange-Diagnostics: 1;BY2PR02MB1688;6:T2azVoFeOTiueJibilOhMH+rCZkUFSv0HrwJqZyCEMvA/xE1pJk2qeqZeA5er3GPzlZX+FNWm6ynxpVoOlBfvVlOAYGbByeShkwXUlMZYZ0U5PwJZiVWqTR5mq/FYHKn/1eCZ6neK7vQ7U37ecpQW3JfVNW5VMH+CSouFubWS5NnutX6dA7qoObjLJeyG6hXABeVEtLpeEXTdp398N9ajDRgRJNn5awBVbWbOakN+G6UQhqW/M4PvHc5Osjfd7WnTyHQBixaFzGG/dVjmK/+XbIxHLPB7vCIWOW0lcKux2cE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4tAlP2w5sbAwwom6nX2kdL1m+rTqHh15cqJ243/Fj5f7Csfmcgykz1NIXeTMRzkUQ6TB7jvkX3wG86cd9s+Xb24Frn1y1jSDgGujBqLIH0km+Iyr2wJIxMU2HqnyDlBh4YUb3JOKfIrVGkxbX3o/rRk9+TfmSgUHWNJoi X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Dec 2016 08:09:56.8703 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR02MB1688 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 473 Lines: 15 On 12/08/2016 09:13 PM, Jens Axboe wrote: > +static inline bool dd_rq_is_shadow(struct request *rq) > +{ > + return rq->rq_flags & RQF_ALLOCED; > +} Hello Jens, Something minor: because req_flags_t has been defined using __bitwise (typedef __u32 __bitwise req_flags_t) sparse complains for the above function about converting req_flags_t into bool. How about changing the body of that function into "return (rq->rq_flags & RQF_ALLOCED) != 0" to keep sparse happy? Bart.