Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp985115pxy; Wed, 28 Apr 2021 19:25:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6IgqW/+unJr+cdAVPbq5gNPN2M2jvGBZVWPY+MMMIQWhWFkidh0+nc0afEXe+SnBp/4y4 X-Received: by 2002:a05:6402:214:: with SMTP id t20mr15313617edv.229.1619663113275; Wed, 28 Apr 2021 19:25:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619663113; cv=none; d=google.com; s=arc-20160816; b=Vj7120Lmb+X08im9csZ8f7mZkTmZwa+ct2bQ/iyLOFCiRkTUayaIi4q+ezNua/lir/ u3oZ/qbgrJqL80oiR2tAuh17PPX01KvnMsSzT0OT7XVHxOohz03j+9j+3Lk0aegbxMGr Zevj9qUj64wZhN5N7LAIan8Yo4Lq8wP1GaNTH/wl14zINuEuyQ5fTUI5eEursVI70kDV BSkgzoy52FefRP2NAfbTQu87lGBLPcPGVKGc5ktoIDlLwC/jrrEXMB0q7iDk7Us8P39n UMV1Q23eiRSpnJFCFYGjz1HqyP1AcArWwC7w2u5ZMgjJ0d2DMmQ/tsyezb42IBc1je1w 6quQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=3s9O02XBC2z+shNsgChXzkaq3eZUtq07qIEwgDv7psY=; b=awlfC+5gxr0bWTdfYvYUuLRn/ufYNnAMWulGOyFD14zQy1F/6Qy+vvOMvCndIfBJPp xgDN+KfUVmJe+UwEYqIY21wpOobV6KTApgKDTSWegQGWUq2bUB6lK5duxSWPf8fj23wE HvyQjnsmq9itZdda/Vy4PQtiS7GZ516ydTgtaVFH+n3dcFSeASS+DQFAE4u3Xr+wnIwP QDsUHWksAXYjGfooveHPeJd1EQIVripMw87lY2fYIJazPiXD+htJ0LGKg941f3UzO1mv NzDNzsDY7xX7KidbyoJSFh2FYFA2NOWizbZOXfbtsvBAf26g6OMs7fgJbfRQziXpCa4K Jtpg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si1977656eji.443.2021.04.28.19.24.49; Wed, 28 Apr 2021 19:25:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235947AbhD2CXh (ORCPT + 99 others); Wed, 28 Apr 2021 22:23:37 -0400 Received: from mail-m176218.qiye.163.com ([59.111.176.218]:29114 "EHLO mail-m176218.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229888AbhD2CXf (ORCPT ); Wed, 28 Apr 2021 22:23:35 -0400 X-Greylist: delayed 556 seconds by postgrey-1.27 at vger.kernel.org; Wed, 28 Apr 2021 22:23:34 EDT Received: from ubuntu.localdomain (unknown [36.152.145.181]) by mail-m176218.qiye.163.com (Hmail) with ESMTPA id 71C04320154; Thu, 29 Apr 2021 10:13:30 +0800 (CST) From: Bernard Zhao To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Bernard Zhao Subject: [PATCH] drm/i915: Use might_alloc() Date: Wed, 28 Apr 2021 19:13:27 -0700 Message-Id: <20210429021327.57944-1-bernard@vivo.com> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZGUweT1YdTk8eTEMeGU0dGEhVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWUFZT0tIVUpKS0 hKTFVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6ORw6PQw4Sz8PDkkSOh8eECEf GTQaCh5VSlVKTUpCTU1JT0pLQkxDVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlITVVK TklVSk9OVUpDSllXWQgBWUFKQ0lINwY+ X-HM-Tid: 0a791b671397d978kuws71c04320154 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This maybe uses lockdep through the fs_reclaim annotations. Signed-off-by: Bernard Zhao --- drivers/gpu/drm/i915/i915_request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_request.c b/drivers/gpu/drm/i915/i915_request.c index 9165971c3c47..7e1aa540aa0d 100644 --- a/drivers/gpu/drm/i915/i915_request.c +++ b/drivers/gpu/drm/i915/i915_request.c @@ -928,7 +928,7 @@ __i915_request_create(struct intel_context *ce, gfp_t gfp) u32 seqno; int ret; - might_sleep_if(gfpflags_allow_blocking(gfp)); + might_alloc(gfp); /* Check that the caller provided an already pinned context */ __intel_context_pin(ce); -- 2.31.0