Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1956263ima; Thu, 25 Oct 2018 07:32:55 -0700 (PDT) X-Google-Smtp-Source: AJdET5dNhSKUeKKi7cDEPNcUmQcFIGNIk+MnAIbXb4hRCoOsxpavqWfYPCP5qZxD1iss7lM0+Fy6 X-Received: by 2002:a65:5a05:: with SMTP id y5-v6mr1679198pgs.161.1540477975384; Thu, 25 Oct 2018 07:32:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540477975; cv=none; d=google.com; s=arc-20160816; b=cAumorzkrXWUzvSZRNIp3wxOYRsXPYNK2BlOSt1zebRLGWqb1B7+ikxCdhLpE8kKQj tyq+F8mGUEB243eDObFo05/lYmepWGx66oMbdsQwQ6fySnXFhfhYdESpehxIaWhmKq3q c7bZr2YrprTjdDxvIX1EoUQb1Dc8czMv6Ayw37SjuGOedqCaxymNL52SFQEDKUuhtZJv 2N+lHsE+B9yCaBY/la56qC+71hPVMsJ9Jxw6Ik8W3dtorL9XAOgdrWQr+fPA8dpuyroG /UQZP6xydogyuv4vNzBK1DhItftoycC61qqUkMjBz1bxq7cd73t8Q5/5gVlynC05gdj8 8tqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=JqfV9E41hysERA7gUM8ZUILnW6o13NwP2QEFuWDivg0=; b=F0PJo6n17DdVtVZnQTgitFMDBO+l/rPXwvhju7NmySfXJ5Bx/JhagyJBCDOtzvZZNj qN/niPSSNrvF0+ra36ysH1ZtuDz19LY7lVPuTvB7Ri+mM2su70rJrcYnYA2kJ/MxgRh6 tmxLUeZkgzPW3dKeJ1reQFEl/wD2JxA2HPTJJdwuQxvvvtBfOguVK2VQZZzbgT+mfToL c024OxirtpdGPsIybLBpW4pZGhacr8SBHm1pa6IG+5OtOY+Rf+mh5ExgvRPWChmgpeUG L59kZo5cqV2EMDFKYYu7mJHkOoE87CdXfr0Qt8axvozSYOt4r/MpHFkxzwEXBs2Z1aro Nrrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pEAxnrWS; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1-v6si2359439pld.136.2018.10.25.07.32.09; Thu, 25 Oct 2018 07:32:55 -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=@kernel.org header.s=default header.b=pEAxnrWS; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730394AbeJYWwN (ORCPT + 99 others); Thu, 25 Oct 2018 18:52:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:34136 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727977AbeJYWwM (ORCPT ); Thu, 25 Oct 2018 18:52:12 -0400 Received: from sasha-vm.mshome.net (unknown [167.98.65.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 14B072085B; Thu, 25 Oct 2018 14:19:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540477154; bh=Js0JCaSlY4m+sfhSWIcLC/5xrKO8CY1U/CJnCcevlTo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pEAxnrWSJcIw1KBZvOyphLrOv1fpblULLawTYtcqNqLI+zgR8E5SZHxCkMvW5OgnM Jl7Sg1Kz+jka+O6/tzGOX9gcNShsS3gnNlY8NMF9Fb/eHAH7TVxiEGJQm28tIz7nza LHm33z+MoVqG6rdQ+QfkakP9Wc4vz1sm52OdvJQk= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Chris Wilson , Daniel Vetter , Jani Nikula , Rodrigo Vivi , Sasha Levin Subject: [PATCH AUTOSEL 3.18 11/98] Revert "drm/i915: Fix mutex->owner inspection race under DEBUG_MUTEXES" Date: Thu, 25 Oct 2018 10:17:26 -0400 Message-Id: <20181025141853.214051-11-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181025141853.214051-1-sashal@kernel.org> References: <20181025141853.214051-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chris Wilson [ Upstream commit a50940510e94f5fb65ffd79877a60592d85598a9 ] The core fix was applied in commit a63b03e2d2477586440741677ecac45bcf28d7b1 Author: Chris Wilson Date: Tue Jan 6 10:29:35 2015 +0000 mutex: Always clear owner field upon mutex_unlock() (note the absence of stable@ tag) so we can now revert our band-aid commit 226e5ae9e5f910 for -next. Signed-off-by: Chris Wilson Cc: Daniel Vetter Cc: Jani Nikula Signed-off-by: Rodrigo Vivi Signed-off-by: Daniel Vetter Signed-off-by: Sasha Levin --- drivers/gpu/drm/i915/i915_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index d88dbedeaa77..d0f0a7943d88 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c @@ -5144,7 +5144,7 @@ static bool mutex_is_locked_by(struct mutex *mutex, struct task_struct *task) if (!mutex_is_locked(mutex)) return false; -#if defined(CONFIG_SMP) && !defined(CONFIG_DEBUG_MUTEXES) +#if defined(CONFIG_SMP) || defined(CONFIG_DEBUG_MUTEXES) return mutex->owner == task; #else /* Since UP may be pre-empted, we cannot assume that we own the lock */ -- 2.17.1