Received: by 10.223.148.5 with SMTP id 5csp7730220wrq; Thu, 18 Jan 2018 08:49:12 -0800 (PST) X-Google-Smtp-Source: ACJfBoudv9lDvuUVX6W8XATXsu0tiHEaHCUsm/6NL3swgs3BYsl8OWYTVkG6Yzu6LjlH9MtmHjhb X-Received: by 10.99.171.12 with SMTP id p12mr10412317pgf.304.1516294151845; Thu, 18 Jan 2018 08:49:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516294151; cv=none; d=google.com; s=arc-20160816; b=RZYvsYEhZQXivmXd9Z5XGImsTHd3BvSv9ywrt25nWJP0L9No2A7RLUwGi2CZA2i8uC /A/Jp4abw7/6I5GHW4skadBEBKejT0PxABSn0HL79sKJaLGqjQLahOZAtfgv6jDf6jYs 44X7cTwEQ0VDEbd1bI8LwfAI7viI+iFDmomElHxQFYt/s1b5Vx6z0e/zIvyRgXkn59Ko /CJtxmTPkveQL1gvcPH3vYMRNN4QmswnA5WJ3gS68Avxnt6NXVtnb4eL2td2wu3Mf0fo 9QU1BF3YPeBwVtnXTUsP5hkvEQhH5r0h2LjdQ3m2EJ+bs1+nT+MK7TeF03mnpuRKzEiT Gsqw== 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-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=R7vg9cqvbk8yYW0K1O+1HzNnuiL+cxEWOdi9s1HZ7Nc=; b=0+v2s0OKMK0EKJFH/wwqgwIDEsuPlyGAMgpHEehvvol059KI1iPJ9+FiwkBeSBOG7K QR/H4SNdCnANjtJJLGE7Qt+eoZcR7iN57yt+IjNZwKq0fJ2FoqlAB16Nwf58N4zKJ6ko mlnUV+SkuoCyg0u//ssn1AJL1LbNFmjffhW9zHZAfojei3xwMrY/2LbqA1xVVt+sXPCj 1MseTMf2ZyKo2KD2ebU3TBcCnYKHxEBLKVGEuWuXlRGtr7InIh7HfOhqCUYFZtkA+lNU dUindRW5k1PVFre0AAXyRKzgiDXnl3Ef4O9IpBOPn5IkqRy1uMkqnq9AVpxUxUCTEW3x 3mvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=N2rjBNcb; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11si6336588pgn.374.2018.01.18.08.48.57; Thu, 18 Jan 2018 08:49:11 -0800 (PST) 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=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=N2rjBNcb; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755206AbeARQsQ (ORCPT + 99 others); Thu, 18 Jan 2018 11:48:16 -0500 Received: from mail-dm3nam03on0058.outbound.protection.outlook.com ([104.47.41.58]:7578 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755097AbeARQsN (ORCPT ); Thu, 18 Jan 2018 11:48:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=R7vg9cqvbk8yYW0K1O+1HzNnuiL+cxEWOdi9s1HZ7Nc=; b=N2rjBNcb1XeH6AmUuBkoiwsR7St2amn0vRuf+IU3OgNB3Xi3rCjqNbXwZng15KMsCZnEqqDyN8tNryZVDcW2rUs+3Hfxy4coEF5PoJwyDHIzBOjRKDUQnauZgXyavUnRItnbp92ug+bRTgpJjc+UIdNfCk0RlhiXLaTNwgfH/0w= Received: from DM3PR12CA0088.namprd12.prod.outlook.com (10.161.151.160) by BN6PR12MB1267.namprd12.prod.outlook.com (10.168.227.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Thu, 18 Jan 2018 16:48:12 +0000 Received: from CO1NAM03FT007.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e48::208) by DM3PR12CA0088.outlook.office365.com (2603:10b6:0:57::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.428.17 via Frontend Transport; Thu, 18 Jan 2018 16:48:12 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; lists.freedesktop.org; dkim=none (message not signed) header.d=none;lists.freedesktop.org; dmarc=permerror action=none header.from=amd.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV02.amd.com (165.204.84.17) by CO1NAM03FT007.mail.protection.outlook.com (10.152.80.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.302.6 via Frontend Transport; Thu, 18 Jan 2018 16:48:11 +0000 Received: from agrodzovsky-All-Series.amd.com (10.34.1.3) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server id 14.3.361.1; Thu, 18 Jan 2018 10:48:10 -0600 From: Andrey Grodzovsky To: , , , CC: Subject: [RFC] Per file OOM badness Date: Thu, 18 Jan 2018 11:47:48 -0500 Message-ID: <1516294072-17841-1-git-send-email-andrey.grodzovsky@amd.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(396003)(39860400002)(376002)(39380400002)(346002)(2980300002)(428003)(189003)(199004)(6306002)(5660300001)(86362001)(305945005)(81156014)(316002)(2201001)(8676002)(2870700001)(81166006)(5820100001)(8936002)(4326008)(47776003)(50226002)(53416004)(104016004)(68736007)(23676004)(478600001)(966005)(72206003)(356003)(106466001)(2906002)(7696005)(26005)(110136005)(97736004)(53936002)(105586002)(50466002)(77096007)(6666003)(36756003)(2101003);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR12MB1267;H:SATLEXCHOV02.amd.com;FPR:;SPF:None;PTR:InfoDomainNonexistent;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;CO1NAM03FT007;1:KHGQVNB2krPAPkMxH1a2MwpM/UpfsqFJr8Ly6n16x+f8Il3Myt7gx/XsEXFIwlZMRYOiWE9Bdyoybf+UQCulXeeYGD+TbUkakqJGgQyIfvjpybgvER4YHlSvjx6ZS0w+ X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c6486e86-cb13-40d5-a785-08d55e9342cd X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603307)(7153060);SRVR:BN6PR12MB1267; X-Microsoft-Exchange-Diagnostics: 1;BN6PR12MB1267;3:Y++h9wXogQ8uaJUkhez2JvpS2YrRTLcB1Oc2vC0UvvEP8a80ysw3gsUf5vCZrBg728JU6TTSuW0XQNFenz164GAwSKGQZ3HC5xIwOQw4e60NTU6eGpbBkf38kFAvE0twtE3aVr3yOtgPdoOdRnn0UQx7YV2tD5usE8qoecp+u7hAliTfalRsm+N7B5gyP2t2q5kainMaCrBf9kPl8ZfxM25pRP79BtBfxvev0t+R3s1YJlg9WkvmZ0TnDNJJyhEgjETX+OI83PxCJiNtOeLZ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BP2Y5pHCJsDzZxYwAsD7Dx2Qgg+GenL+LVdeRJIIuXHDq2Ja3AdnBDgLoCTvICrx0nv+sryMRUsy3iHzylSgZkxJFj0CB33Q58SB8P6r86mwZsWQkjFE6EQjZ1RcmmfcPao+RA0+X+ypMqqAy569Z8gluaBX7DsbOEw X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(217544274631240); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(8121501046)(5005006)(3231023)(944501161)(93006095)(93003095)(10201501046)(3002001)(6055026)(6041268)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123558120)(6072148)(201708071742011);SRVR:BN6PR12MB1267;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:BN6PR12MB1267; X-Microsoft-Exchange-Diagnostics: 1;BN6PR12MB1267;4:QjivwChE5ORh6/lCeqG3ml1TrIzjgiQl8J1J05SyzTY8xvCWOSb5wQGFwL8cA6iUhJ3+oJ1brSwOgUaqH2S/CL/EabT5QDgKVS6Jx7/QpZOgy1HPPDZIBq4G3YQLxwquDuxlcubIz8aCg34JOIkofVlRqerWSiPFjFGkevosN+eynHchHrsAeomXegQpJg9Ygg+2qL5K8O6HsqxlGFwIa/D6xYbnV8QiOa9eqpx4zlFFaEFTUaIZ/xXt7GJKThfQbQ4wz0Kz8gmjyTsa7rKL+41a48Z/VbopL58xZ6UKD/WprJBH/1YQEmNepa+JTlzN X-Forefront-PRVS: 05568D1FF7 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjEyTUIxMjY3OzIzOnVDcFIxMlJUVGtycnFnYnVSRmJIWWpNL1dH?= =?utf-8?B?NTh4dnE3N3AwaER1Zmhxc3hnTnpWOXIwK05oU2hvWkFXTzQ2dytSRStWVSs1?= =?utf-8?B?Y0FhYzhtM3RldFNQVTlPaDAwS2ozVUVLZ292dmt3Q2g3bG1adS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gydHyAKNKPVmKhwF1Al9EQc8zqo9LD/IjMYRoby7p1X6x0OhXvwCA0r5MmcHCGXfFKIMTnFFp9wSsrB23f1a8sdJU=;7:3f66zPVc4hLkdODbCWrc6y4mfvJBQ5+8yZsr9lwXF+hybELHxlWt9zw74cPh98JyvSAroDvK23zPw0qKk0kz3DN4nq81jZOFf6d9Q4XGwnYENIjLw/0sKT03q+HXerU5j7IjwEtvI+CRRvUPowNaL0ZhJ0IUenylq0ES80ZOAieEW0xDMse50pU+FsmuX7wgTJMnxslD0W/nRU7PJ4D4nM4A5DUTzPKoLvBpizdRTJ5uJYaQFcKwSgBMEXKzwkBD SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BN6PR12MB1267;20:ybrZ3ezPIOoYgNi4wzh2uksvffhbcKl6m3DzV4ckSh6116sbDbVoCF65jttmW3EYF5grYOJsglJK+GvVBu4mOhMeWCP67AtaA31DBR4bYf2/gXm3LZ0Oi0HVu7+eqHo8H0umRdui4hNE3d3Rxz6YwKAJzvGVClw3DNq5A7y+ikhDhVDA6VU2ZYaIsTk9/gL3+XUP8wZxfWQMtn+88MClFzCIp+rvZazhZhZbr2+A2p5HlTjtuwsFZEoAtl0ePLtD X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2018 16:48:11.1770 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c6486e86-cb13-40d5-a785-08d55e9342cd X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXCHOV02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1267 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, this series is a revised version of an RFC sent by Christian König a few years ago. The original RFC can be found at https://lists.freedesktop.org/archives/dri-devel/2015-September/089778.html This is the same idea and I've just adressed his concern from the original RFC and switched to a callback into file_ops instead of a new member in struct file. Thanks, Andrey