Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp411417ybb; Wed, 25 Mar 2020 02:12:48 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtV83ilMCFffy0pEh7Gg4oo0ULbvvFbzv7yq3qElpJ6xV7x11t6pX8ckmM0v0ImZTEbU30r X-Received: by 2002:a4a:8241:: with SMTP id t1mr744816oog.57.1585127568562; Wed, 25 Mar 2020 02:12:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585127568; cv=none; d=google.com; s=arc-20160816; b=ma8Y7J/tUo3tBsLdnVs0xWcYdI4UYK1VqNX9UqylNvJ9sJqtBH5TmGX9TP7GdBzjDy AOmcnU2yLVLOGDQqI9yZkg1Jni0mH6Mv2Y11MHvW4mDCEYRCGnROBAuScCQ33Fy8qpu6 VRdehpnusUyvIX94KFlMWp45BOKZ3yC1krS8xMKA3yRcL+gSmYMJSUZ7tkBG9KgmcB92 58uFiRjon+PkyAMciaxltGxR0iFVfzwmUsdaWegnIHCnM076tUNmhfybG8QieO+diFrP Yg+7roxfwJ9AZaXLtuK5/ksiThPrIx/BLwABE2asCDzihEdrXmLxsnwejZO/50chTXv4 1evg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:user-agent :mime-version:date:organization:references:in-reply-to:cc:to:from :subject:message-id:dkim-signature; bh=tpkY/0lY7hpHmA05svGpFbUDqP2D/nkfiH+o4beESdM=; b=TqYkJAQV5fYnlHy3i6ZwPYrBp+6UU3Mln7G7CdnrpyGMKo3udxU17aIW2ZdpIwPdv2 HCiRa0RxoFcMu+0ozLObbCnU2RzNukJYePIbYhCMMkwBTfBe4ms+UU/NhIYKR53l2oak Y2AM25qSIR+PFrM6ZeQ/8IEg/qX10v6LzE6OnTtDo/96UsWgBi4PaVp8Cf+nyc75eypG k2jiU3qchr55DLBqaFT2ar5p565QT6/1vgZDWX1dPd1Orc1vP76FOq3kJtL4DTFym0+U fI7NR4mUjzYeifPqDVsEkw0q3TS+sunMXMgUcRy3VCJ7jd9OHAI4rD7biWsxcx9Kh/fd +eNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iPqCGbGy; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q25si5982216otn.323.2020.03.25.02.12.33; Wed, 25 Mar 2020 02:12:48 -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=@redhat.com header.s=mimecast20190719 header.b=iPqCGbGy; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727137AbgCYJLa (ORCPT + 99 others); Wed, 25 Mar 2020 05:11:30 -0400 Received: from us-smtp-delivery-74.mimecast.com ([216.205.24.74]:55414 "EHLO us-smtp-delivery-74.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725873AbgCYJL3 (ORCPT ); Wed, 25 Mar 2020 05:11:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585127488; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tpkY/0lY7hpHmA05svGpFbUDqP2D/nkfiH+o4beESdM=; b=iPqCGbGyGMaLBvKL05CcmsJA1SPBGA3IUv8xpeNGF+sSjVDMmAgIg5G/PEAaOI1Kw9aRWy QyKYZYycZypB7Zb2BW4cdYcZDsTacZR/RAcrlY1kFcR9Y+E57dG2phMy0nvQh12sdjV5Aj bbXnR1zvsUAyVH3evs6WznzEB/8Cpsg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-95-yFDH14ZWOBmUqrL7kRzgMA-1; Wed, 25 Mar 2020 05:11:24 -0400 X-MC-Unique: yFDH14ZWOBmUqrL7kRzgMA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 51F9A801F7B; Wed, 25 Mar 2020 09:11:23 +0000 (UTC) Received: from new-host-5 (unknown [10.40.194.245]) by smtp.corp.redhat.com (Postfix) with ESMTP id A9EDF5C241; Wed, 25 Mar 2020 09:11:20 +0000 (UTC) Message-ID: Subject: Re: [PATCH v2 3/3] driver core: Skip unnecessary work when device doesn't have sync_state() From: Davide Caratti To: Greg Kroah-Hartman Cc: Saravana Kannan , "Rafael J. Wysocki" , Vladimir Benes , kernel-team@android.com, linux-kernel@vger.kernel.org In-Reply-To: <20200325074428.GA3014101@kroah.com> References: <20200221080510.197337-1-saravanak@google.com> <20200221080510.197337-4-saravanak@google.com> <20200325074428.GA3014101@kroah.com> Organization: red hat Content-Type: text/plain; charset="UTF-8" Date: Wed, 25 Mar 2020 10:11:19 +0100 MIME-Version: 1.0 User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-03-25 at 08:44 +0100, Greg Kroah-Hartman wrote: > On Tue, Mar 24, 2020 at 09:03:28PM +0100, Davide Caratti wrote: > > On Fri, 2020-02-21 at 00:05 -0800, Saravana Kannan wrote: > > > A bunch of busy work is done for devices that don't have sync_state() > > > support. Stop doing the busy work. > > > > > > Signed-off-by: Saravana Kannan > > > --- > > > drivers/base/core.c | 4 +++- > > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > > > > hello Greg, > > > > this patch and patch 2/3 of the same series proved to fix systematic > > crashes (NULL pointer dereference in device_links_flush_sync_list() while > > loading mac80211_hwsim.ko, see [1]) on Fedora 31, that are triggered by > > NetworkManager-ci [2]. May I ask to queue these two patches for the next > > 5.5 stable? > > What are the git commit ids of these patches in Linus's tree that you > want backported? right, I should have mentioned them also here: ac338acf514e "(driver core: Add dev_has_sync_state())" <-- patch 2/3 77036165d8bc "(driver core: Skip unnecessary work when device doesn't have sync_state())" <-- patch 3/3 like Saravana mentioned, the problem is probably introduced by patch 1/3 of the series, 77036165d8bc "(driver core: Skip unnecessary work when device doesn't have sync_state())" that's already in stable 5.5. thanks! -- davide