Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp5554632ybf; Thu, 5 Mar 2020 02:49:36 -0800 (PST) X-Google-Smtp-Source: ADFU+vtZHoBIL8+UIQ+omgigVs5ylJ8h/LfRzkCSLxn2Ch10olRitw++hTFmiBRU3CYg9OiLZqU5 X-Received: by 2002:aca:5f87:: with SMTP id t129mr5239375oib.36.1583405376125; Thu, 05 Mar 2020 02:49:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583405376; cv=none; d=google.com; s=arc-20160816; b=ImypYv9ZWaw2hZjwxa9SwSzHDbu7dYijDzuLh8YovSbpD8MijHKN3h4pduDWantQmg I++Dx8KllKkeEgobvkyDX6/cmOKDgR58hwJ+lC5EvxGy+CXzeZHs9QJuL92VQL3MX6Vi 5h1bnbY4U/aiJXrfyjNL2dj2fUL+b+9KMaE0cQDQAwuVVEnCdKDvk5QthzLU84qOE1qq QEy1OTzVHoxmMrxntmPZ/dxHk5nlKj/60rNv7hswbCXCsEB+R61/3kgss6n2KBLhOSRc FOpAmifeCNrp7VSDbs4PkM3TfJmkOpOLEJ0tcffzUBriVscpcdVgCuWhB0n+SM7SSvnt oV7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:dkim-signature; bh=FFHDTdsHNQ+WpC3J48LkcUo13CW/xHV+YRnYq60G8e8=; b=QEj7BZAfOzjthSnB92vHAJel+7UjB+V5jyhTRQ3quJ+Qk2Y3o13A79f+HkxKBwnztv aQak3voGhxHuMwx17BZV9CGLacurbi3DFCa8s0dWt7KSEq6l7+kTD6JzrXc3TJ0aBA3b /dDf/tDesV+6FxpNaK5SgU/5xtxCzkBPuODP9ceiLBcS5AvgBp+zThHT2LztiYKPcxco yLJPUEWM8wKWZLVeyqFQyMRuWxDiTYgFKFN8TjNmtpIxeXcRRNx2E2Mx2qJWG2lTCeIz /SxdAwifjRvvHyeln5frxVyEOZw4A8PiTcRAKIFoizBHKbpue8USIXkEGYQjwsBmGIFk GTkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bNdSrPUd; 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 q81si3184254oic.174.2020.03.05.02.49.24; Thu, 05 Mar 2020 02:49:36 -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=@redhat.com header.s=mimecast20190719 header.b=bNdSrPUd; 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 S1727178AbgCEKrl (ORCPT + 99 others); Thu, 5 Mar 2020 05:47:41 -0500 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:32009 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725912AbgCEKrk (ORCPT ); Thu, 5 Mar 2020 05:47:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583405260; 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=FFHDTdsHNQ+WpC3J48LkcUo13CW/xHV+YRnYq60G8e8=; b=bNdSrPUdbVucwqy09Kn7tUvb8HM7UuCO9VkQtP17NRsnUbfcZ1gEtCy8sz1+z2IsjrUTlz akWQOfFh+ozS1c67RZpRPqg3VPDpHYEiXVHaNyKPOY0NPDjC1tXKm1KrvhiuGey79iJZMf 63FuZYxKDZ/+EEhyAZTnCPA//Nwxgq0= 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-113-HuL3wU8oMkWBRhRkMioOIg-1; Thu, 05 Mar 2020 05:47:36 -0500 X-MC-Unique: HuL3wU8oMkWBRhRkMioOIg-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E687D107ACC7; Thu, 5 Mar 2020 10:47:34 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C937E91D79; Thu, 5 Mar 2020 10:47:34 +0000 (UTC) Received: from zmail21.collab.prod.int.phx2.redhat.com (zmail21.collab.prod.int.phx2.redhat.com [10.5.83.24]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 7BD4538A1; Thu, 5 Mar 2020 10:47:34 +0000 (UTC) Date: Thu, 5 Mar 2020 05:47:34 -0500 (EST) From: Vladis Dronov To: Andrea Righi Cc: Richard Cochran , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <1136615517.13281010.1583405254370.JavaMail.zimbra@redhat.com> In-Reply-To: <20200305073653.GC267906@xps-13> References: <20200304175350.GB267906@xps-13> <1830360600.13123996.1583352704368.JavaMail.zimbra@redhat.com> <20200305073653.GC267906@xps-13> Subject: Re: [PATCH] ptp: free ptp clock properly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.40.204.231, 10.4.195.18] Thread-Topic: free ptp clock properly Thread-Index: QwGKf1Q/LQ0b+CJqbVMkJPSAlrl8TQ== X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Andrea, all, > > I would guess that a kernel in question (5.3.0-40-generic) has the commit > > a33121e5487b but does not have the commit 75718584cb3c, which should be > > exactly fixing a docking station disconnect crash. Could you please, > > check this? > > Unfortunately the kernel in question already has 75718584cb3c: > https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/bionic/commit/?h=hwe&id=c71b774732f997ef38ed7bd62e73891a01f2bbfe > > It looks like there's something else that can free up too early the > resources required by posix_clock_unregister() to destroy the related > sysfs files. > > Maybe what we really need to call from ptp_clock_release() is > pps_unregister_source()? Something like this: Err... I believe, "Maybe" is not a good enough reason to accept a kernel patch. Probably, there should be something supporting this statement. Best regards, Vladis Dronov | Red Hat, Inc. | The Core Kernel | Senior Software Engineer