Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932619AbcLNPD1 (ORCPT ); Wed, 14 Dec 2016 10:03:27 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:41512 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755544AbcLNPDY (ORCPT ); Wed, 14 Dec 2016 10:03:24 -0500 Subject: Re: [PATCH 6/7] mq-deadline: add blk-mq adaptation of the deadline IO scheduler To: Bart Van Assche , , , References: <1481228005-9245-1-git-send-email-axboe@fb.com> <1481228005-9245-7-git-send-email-axboe@fb.com> CC: , From: Jens Axboe Message-ID: Date: Wed, 14 Dec 2016 08:02:59 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [66.29.164.166] X-ClientProxiedBy: BN6PR02CA0068.namprd02.prod.outlook.com (10.175.94.158) To CY4PR15MB1192.namprd15.prod.outlook.com (10.172.177.14) X-Microsoft-Exchange-Diagnostics: 1;CY4PR15MB1192;2:R7YnbFbRto+XL3mbo+3kVJGQmqYWJ4Tkn+LdsayhFNTvIDn0VeQQtV7+75LWRnHZh5fcg6Y3Wn52Yh87SKTsG1C0WoYMoHC01YkngwcW5o8JrIR0q3Ygt6kdIhlTpGWW+FQepnNBvLWM4NnJPfCz9mz67L+zr40j9RbqiMxCgdY=;3:hHbUTu1CKCAGqJz7EpPDk495D97cf56hi8TnPceW8zjVbOm3RYPbfiA8xBr4eCh1SoWkBNuK/NcrIvmZMkJJx2wpP/LLdUOOFRtqhUuxhhqeH5FElV3UHxbEG7OYWFIbbFmjcfF7YtQgR+Hu1sDyeEZMQ66I6ek+Lae5rKO6Hn0= X-MS-Office365-Filtering-Correlation-Id: 4d7dfbb7-ea4e-42c2-db43-08d424324ebc X-Microsoft-Antisp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rQoZBk45bhj2HKhR56xTNRgM4S1STIYsKVr2aNznIryLq3O41W3quiLPx5lhWSjmgJi4wlLL6hIgPtJ2mKztf1QOZd3xoVQ;20:5AMLbPPv9qYvVzH3UyxU+w+kmTAChk1muvPGZTi1XjLDnTx9Q4b98OY3oRL9+blZukAOPG6/z/zSMx1KWVg4PNvCeInJFHH4yfE4TNWuAWD2G0vNwu0RlS6yAcsCoGtyC4kNirbYMnxZTB3p/Ugnx73CZ6Biip8KBFah7s5Dq85DjI93u4rCrQwSsBU7BSHsmdEc5gsZZc7zG5vPl7hQJIsaMnLUnhaodO7sjsbUESLz5s1CqCCA0fbqDWiw/stn1AH9QAJ4VFS9Xx/rG/XRGCmvlymNyPSxatAvTdzRcp0LVNjxD7ahghXv/GLJIJiWNmzCZFqZF80lFruucB4BL/DhlNr4xGHlcyk8Qe1FmgHQNL48WI3r9a49Adyr3QGgGOJnFeSzHR8tuc/lqb1h3ikPSQq6iKb94DxMzz3AdSi66L1zrtUBRLsvifwMd5YbG0xFfzserHk4h0fL+pR7RmEkOl+cmkQGoPUQaa7KIvSDK1BxQq0/CZO2va16QhvU 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)(6041248)(20161123555025)(20161123564025)(20161123560025)(20161123562025)(6072148);SRVR:CY4PR15MB1192;BCL:0;PCL:0;RULEID:;SRVR:CY4PR15MB1192; X-Microsoft-Exchange-Diagnostics: 1;CY4PR15MB1192;4:IAHaim5GpDyjAmbW/EgpfSxX7PrRkBGJzBCx9vmBYQaj6ct6K1De9vRRs1VMVyI2tCfzXY9P/HxDdECjQtg9zhNO5ME9+IHTJbCb5+dFhfhNhgT1qpJvDbTHu70jdoT4HCPoNZP0PlI2f9QLqQbzvTfdOuW+uT1z0sjAFvGGIaNStK+M7lh2ZpUJqORFriRlUnSPSfs1aS2apApeXPFdOxF/vWWbXe5h2A4qAO6ZZEF+7BNd30ML+ZE5VYHqo4H6Z3YP083fXi1LE4btprawBQOIADR33A8wRw1bhjGmsHqImucDlkg+Fv9TYWSmYcDGOQgh1OWwI6ExiV3zT53lqJHXs7vagBRiXr6o/nqkUWPM5HY/7d+rxiR7iyVx0zLhEuFe21cX6eDO0VJiuxGxJabSZeHTykbuAe8QFxI7Lzb+SeIMF0zNSZlt/VLQ6EhhlK74hexBxP3KPINAW765DH6jgMqpu1YkNILEuDhQrCFYDVgEz8pvXLQfIPSbgO/KezKUioxFfvPUlNYPtedkK0/uf6geQ/YPk9FHnod158m8WB1zgzSKpK1ugaAeDntDxYdDAdojIVIaJLGI7mF4Og== X-Forefront-PRVS: 01565FED4C X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(6049001)(7916002)(39410400002)(39450400003)(39850400002)(39840400002)(189002)(199003)(377454003)(24454002)(3846002)(229853002)(65956001)(47776003)(6116002)(1691005)(6666003)(117156001)(105586002)(2950100002)(8666005)(38730400001)(50986999)(65806001)(76176999)(33646002)(31696002)(189998001)(2201001)(90366009)(83506001)(77096006)(86362001)(5001770100001)(65826007)(97736004)(4001350100001)(31686004)(50466002)(101416001)(54356999)(106356001)(6486002)(81156014)(36756003)(81166006)(66066001)(230700001)(2906002)(4326007)(5660300001)(8676002)(68736007)(42186005)(92566002)(305945005)(23746002)(7736002)(64126003)(7059030);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR15MB1192;H:[192.168.1.176];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;CY4PR15MB1192;23:0HTKlKkKx8IADMgMfcUpYeDGWpVCNclqoeIWu?= =?Windows-1252?Q?MYdBaMs8zpecTF7CMzFvGaTCYuI3qDxCqaSza2tfrNZ3IULBVit806sT?= =?Windows-1252?Q?M3ZQVTR2p8ki+t6yRlwO1OpCOB/EgAMxyU0r6SuNMvHSwe+W/u5lV4hm?= =?Windows-1252?Q?CNV6CaooBKizmWCACFV++9Ocdwj96ayKzLZuKorMBQeZXMST1JN0wxDr?= =?Windows-1252?Q?0cbzvVa1oTmxD813VNm4iCPuwvMG7xauq2vHb4o79XDT3FBHQsIM1iXk?= =?Windows-1252?Q?Bw+jPtGIbb02CySnp6KSRv1rSYygRgyFWxFZYyaqdDEyChWNw1Iq5hyb?= =?Windows-1252?Q?I00Rw92KMg5z/Ao8qchB9Fs5qDIElU63EXDemooWuZi/2YiLn2026eHH?= =?Windows-1252?Q?8IAcCpBb0Zb8jvGh4LNm86Y80W6kuWTQGoaNoecxK7szttZJgP3VpEcE?= =?Windows-1252?Q?GjzDZzGgEe9xrUMhcOdkQrPZkTanDr2ds5TSW5QiCPHN06R7RCBOgdXD?= =?Windows-1252?Q?QEs3Ypr9pICMyYvzQbrOvs9CPHRjJFXoJBXFjgQfjdYkXN32F0L/UJNd?= =?Windows-1252?Q?okH+YIuKEovUtIiUIiw1qAq+5efgDLABwPEsOqktDDFituEY+vkYNC7m?= =?Windows-1252?Q?9ukzSQYkjrjZS9Ap8NC6bTBbNjJBRtTMrRXWsXJiQYqz8SzZjSfyD9i+?= =?Windows-1252?Q?uV8eEggt7XsE5Cb/vFWfBLwaM4BGjdHRzMCJMtAn3cQ8WK8TxJkRWtti?= =?Windows-1252?Q?cDYiwNOxihTDhmUxNuDzVaoPTu0gJ2FdOu031pK42TlwiS55TftFwSgb?= =?Windows-1252?Q?FflrABtmXUAgFSYXfqv/yB+vT7au0Ig0vTd6DUOSWGeQW1sUjyxQ7eTf?= =?Windows-1252?Q?f0vUncSWzmotZ35Hy2XDALj8NCPLRvhlHb6Le1P7uzbI9eFveJTwayF1?= =?Windows-1252?Q?fIDv2SGmORS9VW5Jps0dtQ6lPb1R5YPe7RZBHXZDVYmvMISMbrD1b6hA?= =?Windows-1252?Q?v0J1C7IkZVHQBEU73kX/XbFrEapaNrORasahQr4beW1TzfqVeRYlmT4D?= =?Windows-1252?Q?IXXs6cP5OIeWUPVOIiKo51aytYgpL4yxeub50G2IqL/GnoXtqNnKRdP6?= =?Windows-1252?Q?63NKJYnpvPIwapHPfOMkO3UxdD54UDiGTNnsd8JmAhPcSq4Hu2zse+vg?= =?Windows-1252?Q?Rwc6JfSSGWwOP/BtM86pqbrL5k7HYzsEOt2xEHlu/ay7vB3kWZMEdByR?= =?Windows-1252?Q?Qvv64vvb1CXuR95+a71TycMO35LYQTHr642Kd4FjFkLBgwyHg5BWfhTV?= =?Windows-1252?Q?2FRV+5JYjJdZIop2mhALCx27UAmWCt4GeHweMhUnOgxnVyq284BRq7Fi?= =?Windows-1252?Q?S1/aIGZM1HPGEMdupTbLyS5AmI0M7BwQfoocTMQ7k5eeTXs7R6f7jhlK?= =?Windows-1252?Q?bHYzF6sS6KQPSm9q6kMf1NSnYgrcVH0JVmc51RNMsC5nsfLSWHH9s0QE?= =?Windows-1252?Q?0ntAZ1L1+1mJ0+uXzlf6IgRDx7rK7wfktzN8VIKuUl0fQ39vGhO0OXvy?= =?Windows-1252?Q?qhIa3vXJ0VYdJZ83zb0pjac+h08GJVkEydbqIhWhU0endEEdB7fWmMYA?= =?Windows-1252?Q?TTMopsZ+Ey63KBmcKvioYxhjDooUdBrWHXyCHBshftm?= X-Microsoft-Exchange-Diagnostics: 1;CY4PR15MB1192;6:C+o3GTJ2EmLxPoRewY5k6l+wqfo/pr7EqVUOUhqn4iQBK98fLJflFkIi+5/z605IQu+FPZiYOcCtVxGDld6Wqdr7IbSuHun3XKse1cg6ljMSDeWzAsZYwS5/OjbqtkKWVfV7SBUK0oCIuPuWe7QULyrxnYBxuiArRXSzYHSxGHQRQlhjoeCbPrP3HJxOGL4ZAvQ4vqlE6PJUg81J/bXj+bRD9nHXWbejE6PCwo+G35wcdDIMlL1RfD31B/9T0rQPqr0CdhjAMv9ayevjZIOg8qVXJlpJb9wkbq8QmGYvBNAVa+bTxObo3Lg2nW+hxoWW;5:x98W9IGt/8JHGfED6o01OxvAtAacInsIphS1FvFtEoVqaQftEkljs3WJk7tusrg2PWPYdJYGqxMaZKa4bBRFKex/2MY7Hl0yFFvObhvISJsLH6hv+xJjGOQkoIFbEgVNOiWI/EjFn4JgrnzPly6bDA==;24:1oD5dvji+0tF2d96vmPmeDG3elP0c+DHMzhWG+/oqbqYhXnIv78ae450TlT92FGVqoaoI6rfN+OkEr52F7sqqaz3yQTJwIVXZ3mHWhwORaA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY4PR15MB1192;7:7XNFNZMvjOU0Lms+jdsIN6MsgQoJLgzimWESh4sfT6EyTiOAN4bfWAPechqk/eI8N6vUKP3SNDvWjlnIiJVSBovxSxTRdrXDbJeJfYjPf/1pFQvgcG5IjsQyZZ9ccbKzQAMtd3gED/1njbPmA0KHI1R225qs7HtGRw3rZBjd3YjncN9yulzF1RqmOLntoGfMR9cDjiPa6Fs9XyHCQCQ9fV7DPHH6Lk+TN8WwkrXXUMbICeuVQB4/fSqS7oXpAxncOBhJlRnKYN4Tn2kQGP8o+f5RefnRkQWQncHdz/+xJho+mHMOv5TxjfTdPl1U9/zYRAIboZeoSNKTsjXizSmPcYLxJdoRbnPeBOQnUL6B4vc=;20:Rnk2Ifrlv24BDNwc98CcIrZR5T7wGFtdiQtZnAu9zBYc2uGOVZ17KpE/fAeEJgAnKgNmyUSnIEOrgd1InBZXPjFJwwhB3xZLYnFp0F9g1KJ9x63XRQkJI/twQQJjMxT+1nv6nloarOpBaQDtph2AU8CbQ9VxCl/UTiJ5pmQDW3Y= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Dec 2016 15:03:03.5711 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR15MB1192 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-12-14_10:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 585 Lines: 19 On 12/14/2016 01:09 AM, Bart Van Assche wrote: > 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? Sure, I can fold in that change. -- Jens Axboe