Message ID | 20220531100007.174649-11-christian.koenig@amd.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87A3FC433F5 for <linux-mm@archiver.kernel.org>; Tue, 31 May 2022 10:00:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 93FDC6B0082; Tue, 31 May 2022 06:00:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 89EB66B0083; Tue, 31 May 2022 06:00:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6A0DA6B0085; Tue, 31 May 2022 06:00:26 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 4D7926B0082 for <linux-mm@kvack.org>; Tue, 31 May 2022 06:00:26 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 29C5934B69 for <linux-mm@kvack.org>; Tue, 31 May 2022 10:00:26 +0000 (UTC) X-FDA: 79525593252.21.CF3C3A1 Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) by imf22.hostedemail.com (Postfix) with ESMTP id 67B60C0066 for <linux-mm@kvack.org>; Tue, 31 May 2022 10:00:22 +0000 (UTC) Received: by mail-ed1-f44.google.com with SMTP id h19so8692214edj.0 for <linux-mm@kvack.org>; Tue, 31 May 2022 03:00:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CBtdyMzsAJ1/aOexJ9rl7ZeO2ErFHAD5HxTQN3Dqn3Q=; b=clhRBft+k4X+UmpE7If794qBfOtGFA7pbEByZ2pinyy2YRsA2O6lLDOynJMSIVJoFM Wvro65LH9mtebwNBzBwhrtxkvox46+r6wwZH4eYd+mYlM8gfp2s7dxCrtouRZ2HvQ9rb 5qqKVWSj4jEdYbd8S6LPV6K7PJCG4fHMCcDZkvLBlGNukalvsGNQKBVKwFWP7x+ZUNc0 mZXiAkmse4krF81HSAGDete8t78Ll4SG7G5gaBi9gesUSTbQOYIe2O3LdV31q8XNetNL YzKH8enFbBx54aGHmjR5bRjrnOqioVrO6oNE62MwqlFCmvCaYYCBPM8DqoQ36EIiOpxJ EWLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CBtdyMzsAJ1/aOexJ9rl7ZeO2ErFHAD5HxTQN3Dqn3Q=; b=20t9EfllHge85v69hGypGoTTCGSaSujLhbDI29Fh9QplqBJJmq8fh7Tfjei2bY/aOK u1xvqgFN5Qi3s5amnYIfNFtZcOqAWkUliQj4vKobD2hBo01zrKjiWohPzlF4yyuXNdwy l2MBC8/tBUrpaaSgHQZMd1DjDZxivlxH3w5aMg7XGPsY6WA5R3N3VkLg/XcQAvWdr6Yh tMj1Yb2l9EXhsh3Mqi1h2/cHfNUkrM8jKFLFBHFUKHbrP/lCyUHhLkTD/TB70nk81Iw2 Ae2oDBdLSBrcRwGz+jaOlW/DqXKD0z9WdybjXYPyegCiKQ+i+WnFgkpkWTvS+rpq04GE 2eIw== X-Gm-Message-State: AOAM530sARpWGh5zzXLvOdHCfEqHTQ6Q2jdUp00Cqh/1ThxFp5XvPATx AR8h4f1xVSaPasEtW9uD8iqhv66mKRSBwg== X-Google-Smtp-Source: ABdhPJw42FrkjYM4LnR278q9mfBravYOk4Zj2lNKJYJUZ/HCUi9Q4cA6PZiVhbQJK68MTRAAzi0sdA== X-Received: by 2002:aa7:d285:0:b0:42d:ca4f:a046 with SMTP id w5-20020aa7d285000000b0042dca4fa046mr13232089edq.354.1653991224557; Tue, 31 May 2022 03:00:24 -0700 (PDT) Received: from able.fritz.box (p5b0ea02f.dip0.t-ipconnect.de. [91.14.160.47]) by smtp.gmail.com with ESMTPSA id r13-20020a056402018d00b0042617ba6389sm582062edv.19.2022.05.31.03.00.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 May 2022 03:00:24 -0700 (PDT) From: " =?utf-8?q?Christian_K=C3=B6nig?= " <ckoenig.leichtzumerken@gmail.com> X-Google-Original-From: =?utf-8?q?Christian_K=C3=B6nig?= <christian.koenig@amd.com> To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org Cc: christian.koenig@amd.com, alexander.deucher@amd.com, daniel@ffwll.ch, viro@zeniv.linux.org.uk, akpm@linux-foundation.org, hughd@google.com, andrey.grodzovsky@amd.com Subject: [PATCH 10/13] drm/nouveau: use drm_oom_badness Date: Tue, 31 May 2022 12:00:04 +0200 Message-Id: <20220531100007.174649-11-christian.koenig@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220531100007.174649-1-christian.koenig@amd.com> References: <20220531100007.174649-1-christian.koenig@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Queue-Id: 67B60C0066 X-Stat-Signature: ih6a41b3tpizet4od93nbdn9nz63679f Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=clhRBft+; spf=pass (imf22.hostedemail.com: domain of ckoenig.leichtzumerken@gmail.com designates 209.85.208.44 as permitted sender) smtp.mailfrom=ckoenig.leichtzumerken@gmail.com; dmarc=pass (policy=none) header.from=gmail.com X-Rspamd-Server: rspam09 X-HE-Tag: 1653991222-727708 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
[01/13] fs: add OOM badness callback to file_operatrations struct
|
expand
|
diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c index 561309d447e0..5439b6938455 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.c +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c @@ -1218,6 +1218,7 @@ nouveau_driver_fops = { .compat_ioctl = nouveau_compat_ioctl, #endif .llseek = noop_llseek, + .oom_badness = drm_oom_badness, }; static struct drm_driver
This allows the OOM killer to make a better decision which process to reap. Signed-off-by: Christian König <christian.koenig@amd.com> --- drivers/gpu/drm/nouveau/nouveau_drm.c | 1 + 1 file changed, 1 insertion(+)