Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1964311imm; Thu, 14 Jun 2018 06:44:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKCusRdxqpozPkgcNFAyYrrPtt9pjdsgOxRfUUeQa46tqRwMTTdy63f7JSgnuBtZroCDF3C X-Received: by 2002:a17:902:2f84:: with SMTP id t4-v6mr3169306plb.24.1528983869708; Thu, 14 Jun 2018 06:44:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528983869; cv=none; d=google.com; s=arc-20160816; b=LjFsmfANKvALKbv8FSHtqHdnCnoX5iRbyJMu/q1SBo5uQNy8HUVEZgTHfb41Tq5oQR gKbasvmmGbChL9488NszsaG1GpovsazxPcx8L5wFh01U6+ti96vb8FjaLh8FmsS8jJrJ tGJOEojRVyWt7i6+WrVHhM1TpPtXa+DFnzsOd8QO97nLGbik+MQWK60aRbCO78fQO758 ZGByCJUy9NE+qevSMnSl3qxRkrb/zjX9VUOxPSmC272CuCeVop5R70GTIqLb13O3nSm0 6NG8E/vRuNJeR2dmWZsUVyfXTLx6/f5ll2ltH3+TWkzTrYZT1icLYhkoUwSudeGJIVT6 e40g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=RI5t7GwC0w3jDK6doYVPGH00OrS+wD6ADIVzE+wy0FQ=; b=x1hrsLli16/zzacxl+S8e2tV82zrIhID+Q3FTmUFZy/vz477McjMncuAREvV/rpTCR Xbb8N57sdzbSpRUNL2sb6d9GNq/pWg0AJhNdmRvc53mDdfiqXUhMIl8+dYqV0F5+ZnpN 1ZV1w0x330c9cm2lzVoTWr1coNbLsZkfmFIXGnVJCFtQHG1nS1mg50YFqgAm9NoazSA/ jb4ydxgDL4FCbNdfUMZyfm/6IQSgj5pEL6emMK/acbdd8cn/xtsCTcZMEbrI+HiW3Sco 6uy1lNKkpGpORtgjXojqG5f9cDdx40nRitrLsiIKk4cE8H7VDTbbVx46AVhRFFFIPF0c TFdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vmware.com header.s=selector1 header.b=mHKqiSX8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=vmware.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q15-v6si5548926pls.358.2018.06.14.06.44.15; Thu, 14 Jun 2018 06:44:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@vmware.com header.s=selector1 header.b=mHKqiSX8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=vmware.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755330AbeFNNnX (ORCPT + 99 others); Thu, 14 Jun 2018 09:43:23 -0400 Received: from mail-by2nam01on0064.outbound.protection.outlook.com ([104.47.34.64]:3680 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755252AbeFNNnU (ORCPT ); Thu, 14 Jun 2018 09:43:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vmware.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RI5t7GwC0w3jDK6doYVPGH00OrS+wD6ADIVzE+wy0FQ=; b=mHKqiSX8+AYyYI3k0ewUaRcJjhKKRXguL3xjk/Vuy4xA+sUI1U3sUZmXH0JoZlSvxX90PWJ/T1cD/2nWn0AWrmOAMfwYJaa8W+2QYlRR/b8szqS/ocWw6oqoUPoeqz0nFXEc4zaGZyACdow8XF6W7qlfPm1fEvHhpS8MVDf1Hf8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=thellstrom@vmware.com; Received: from localhost.localdomain (155.4.205.56) by BN7PR05MB4578.namprd05.prod.outlook.com (2603:10b6:406:f2::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.6; Thu, 14 Jun 2018 13:43:10 +0000 Subject: Re: [PATCH v2 1/2] locking: Implement an algorithm choice for Wound-Wait mutexes To: Matthew Wilcox Cc: Peter Zijlstra , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Ingo Molnar , Jonathan Corbet , Gustavo Padovan , Maarten Lankhorst , Sean Paul , David Airlie , Davidlohr Bueso , "Paul E. McKenney" , Josh Triplett , Thomas Gleixner , Kate Stewart , Philippe Ombredanne , Greg Kroah-Hartman , linux-doc@vger.kernel.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org References: <20180614072922.8114-1-thellstrom@vmware.com> <20180614072922.8114-2-thellstrom@vmware.com> <20180614113604.GZ12198@hirez.programming.kicks-ass.net> <7eb10c22-57b3-1472-0a77-7f787f612217@vmware.com> <20180614132905.GA7841@bombadil.infradead.org> From: Thomas Hellstrom Message-ID: <425f4d5b-d414-de46-f388-55f1e6821ba6@vmware.com> Date: Thu, 14 Jun 2018 15:43:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180614132905.GA7841@bombadil.infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [155.4.205.56] X-ClientProxiedBy: CO2PR07CA0043.namprd07.prod.outlook.com (2603:10b6:100::11) To BN7PR05MB4578.namprd05.prod.outlook.com (2603:10b6:406:f2::12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6fed7506-b41b-4fd5-bb2c-08d5d1fcc887 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:BN7PR05MB4578; X-Microsoft-Exchange-Diagnostics: 1;BN7PR05MB4578;3:f+qwrBVfCFU3vN8otiHVXBoAjzW3f4t92Cyfl4CCGcI3WhB4PDQAp81a0IyZ/yQTRmWCbBv2U21UoSjATOkL3K9uVFNcqY/49hXIOecpT7GqARn8mqe2jNa0HSACqF4iFG7Jo1pX2SfYjjVLUNtdVqpDsPOrqabFRYfpp6TGMawmtsS+IkqGFNJ/Pk8oBPVHH9/PRTDjfS7h+6WizdQeShp9WxAeno9Y0VowNzRAAp+zQtwsu9/AWRGOGgwnY3tO;25:pzNt+6PCNhmAqrzKyWquIaqozoje1Ly+aeYs879p4HobjjLaOu5rtaSBAw6HYjUWJzAnSWx5Cfa/bb0kYmSS/vdaaId8IvSy/nQ2h7RueQLg295bp/0uH4NDMs7ZWCzydVihuGb3lEWwXVOPnxnmlDamdKhF5SA3GjAw2y2J9Wg0xGAdngWBDAFCnJKYDpy2oQFQhvo2Yp2C3sg9Hb5W7e+bFO9B3LBSUBejdJuBX3PzYkeu75xZ72cEIQJ/1GPmKVz7Dfq5eMzD8FG/h13lBHxCzzHuLPjVt+nJUoEQvyCINzp+B2WZnaJTFZPhurnC+mgNcsvE+FGXi2RnOCGnlA==;31:GHNYvT4rTU/+FsYj/Wmgko4AAIEFwbBV4wqOBLtDHMHZqB6Fxdox34dRJDlZQa89xU1rmlvbEZO9merPdDBpwtoL71pz7H9qqQNXIa2lDAICQgfphu4XNM/LKn1gfyoRAaHjkphdnt5urCq30uK07rSWbmQJLsqjW0mt+WcBPSYIa4TYVvmf9O8gw5leuY5CL0gqlB4xi5mLR/M17nFcAyxRjiu5umd1r2gfgPT3KRU= X-MS-TrafficTypeDiagnostic: BN7PR05MB4578: X-Microsoft-Exchange-Diagnostics: 1;BN7PR05MB4578;20:7ui9UuR3aaaDhDMt6I3rJY6Cg/BtPOCw5MLpzB91xruc6M38HThtM/xb/Om3aQeIlJvMYjSsjI+AIOgSg6vThyOW0/+qBHH27seWSf5OL3eKGE8rLjwDy34aVGbWxGDUemg/XqgPeJeXyBbQ/dlZMURkMeb7U7fYnhwKiivkfcTdrIoSG1VkG1pS4JraFlrXbOVwMPMcisdGDCsBZGa9KwiUs+8Gu9boodcNDfv33LsYGla3veq2KX+K+LUzBccQZ+H7DLElez2WmI2cmqUGjUuyfCW4q9vTvTY+ZVNFn7Gox2vsIhEdsz+jUqbY3TrHiN1aN8kF6Kedj3DRod2vJppMom+CyEVjADFYes88aSSEb/mk6b5YkobYvn0IWBD5Kn/Hy/Ipj5dE1o/HQJ9gDvp/iUj15SKSw+uqSvDLhjm67IxkgJ8JT0msdGqMqkDRORKjD/XBgXyWtjmvGC8dSKjvlmgB0M+zb/yFIOA9goL/DoqgquCrLSx75h4lzqQd;4:WfQTsXMGwSZxuihjIG346xlXBS5IyGVjaANhSqCBeiF0jYVWo/h4AEA1PMu+0MAbqz+MUEKZ1pzn85dlnXnTwPhwyRXxxergeoJstdjBMSBdqb93uPWpDh0nUE8pGyiihasmblZMibehveL+ONBB14MXeE/YgOQ6ytrGMU0BMOoQ8ObhlzSNDtfieMjytJ3lrHWFGcbhatAV5cqD8XtPA20ogiCnOsyN11bI31HP/wLhbuukowNLqukg+khlzkfXFxE5Av+SRyD1ML+3Zh+ARw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016);SRVR:BN7PR05MB4578;BCL:0;PCL:0;RULEID:;SRVR:BN7PR05MB4578; X-Forefront-PRVS: 0703B549E4 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(366004)(39380400002)(39860400002)(346002)(376002)(396003)(189003)(199004)(186003)(54906003)(52146003)(23676004)(551934003)(47776003)(486006)(16526019)(58126008)(386003)(53546011)(59450400001)(6506007)(316002)(6916009)(26005)(65956001)(230700001)(65806001)(6666003)(64126003)(76176011)(52116002)(2486003)(93886005)(7416002)(67846002)(50466002)(3846002)(6116002)(68736007)(7736002)(36756003)(105586002)(97736004)(81156014)(81166006)(8936002)(4326008)(305945005)(6486002)(478600001)(6512007)(5660300001)(86362001)(2906002)(446003)(66066001)(11346002)(476003)(956004)(31696002)(106356001)(2616005)(65826007)(8676002)(25786009)(31686004)(6246003)(53936002)(229853002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN7PR05MB4578;H:localhost.localdomain;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: vmware.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjdQUjA1TUI0NTc4OzIzOi90K2RxUXVmSXpuUTVqR0ZuOXRGOUVCblB0?= =?utf-8?B?N3ZQalg5Zkk2emswWU5XZGlHcHZoNnJ6NmljeGFrd3JENFBBYU1tQVZlUmdH?= =?utf-8?B?SjBIRUJJT1lXODNDTy9NNTROMzFCdExKOXhsZUJMR2dQaGw4clY3UUpwajlI?= =?utf-8?B?MFdYd1ZWVVhZN2NvWTlhKzdsNUQ1eWphUzBPbmpwd05Db0pjc2preVFrZmtR?= =?utf-8?B?UkoxQkdvbUJLZUVtSmVDTXpHcGN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Ibsw8rsA2Op99hOmizGx0SIOg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BN7PR05MB4578;7:YSS9iP8JQS06klpQY4x0EfBeTiBYltCt3I9CvmViCXI2Gw+cngeWQOUSvTMiz7UtoAJXMg5TH88rHBPBY0nx0R0FoDbrZzqX3r0gL9p+M142yDknLy2aVNXbkyUeV0+oT2hiP5vkKNTQz+oyq2/RmrkxgaGdLyhQ8IDvvWR/C9SpbnhgvJz5+80ZMTRMlC8O+b73Ue3B/a2eAVnm3FP/RqG9WsDNpoXpP+Tcd9yotC0M8vswU6VJion7BbwTfwJr;20:w2fNMLvVMaeU7yvmBc60tqUUmlNPs8lYVOG5Tzafdltxem7Q4T3GJ21C6jUj0iXTKzoZ28lzfrejxpuljFRj0iiEW073tnsvp60363cVyai6hkWSCPwb2PYCP5BLk0vm9kp3n1vSdsEFPC9nDHVhrJH8ADQzF0YvUvZ/VQqOI2Y= X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2018 13:43:10.3490 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6fed7506-b41b-4fd5-bb2c-08d5d1fcc887 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR05MB4578 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/14/2018 03:29 PM, Matthew Wilcox wrote: > On Thu, Jun 14, 2018 at 01:54:15PM +0200, Thomas Hellstrom wrote: >> On 06/14/2018 01:36 PM, Peter Zijlstra wrote: >>> Currently you don't allow mixing WD and WW contexts (which is not >>> immediately obvious from the above code), and the above hard relies on >>> that. Are there sensible use cases for mixing them? IOW will your >>> current restriction stand without hassle? >> Contexts _must_ agree on the algorithm used to resolve deadlocks. With >> Wait-Die, for example, older transactions will wait if a lock is held by a >> younger transaction and with Wound-Wait, younger transactions will wait if a >> lock is held by an older transaction so there is no way of mixing them. > Maybe the compiler should be enforcing that; ie make it a different type? It's intended to be enforced by storing the algorithm choice in the WW_MUTEX_CLASS which must be common for an acquire context and the ww_mutexes it acquires. However, I don't think there is a check that that holds. I guess we could add it as a DEBUG_MUTEX test in ww_mutex_lock(). Thanks, Thomas