Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp211905ybh; Mon, 9 Mar 2020 19:58:11 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs0cCRN8vCmseRxctb/nb/X/ymLFg3BBNBPTXnkV+gfhg4ocJendhoDP6RTnxnG3xF/Dntp X-Received: by 2002:aca:d446:: with SMTP id l67mr1622005oig.115.1583809091042; Mon, 09 Mar 2020 19:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583809091; cv=none; d=google.com; s=arc-20160816; b=RZWrMBr/NN6Z6SeaZlmJ9oZFZ4H/+LO/2jp3xRscVsTRNTZyQUPqwGw9S/9XE2LU4a oHgkRLl6uZdYUVtVoimRtPJhH8pfjlCcCU/v4Rjf1hcK/DdyfyREf8xrqfA2ZIEFLocn qcGqJe2i32cQzAfVi4o/HvLco1nE7JSC8eXj0hmAHjsMviI3bZRlVvAlnj8ll1CrWkzH hsqboWBikA4hF3SD3LinEVFpSBoEEGoQj3vEuZSuz9eSIMWy3MIjMeICZp0pdiPQAQl/ yLHiVLOiog0vYietq3hOLkFhnsVfOvpWL94fTQ9JrkT7zNzHNwQ75KMGZOxv7dYiWJcZ 0xkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2M6O5OzI+IU6v1/jeWA3Iv6zMngQ6Hoh4arHeMtChQg=; b=lTinZ32tmKcJSQwoj3XuEDnyO5UpjBHdBpk23aulQCsCOKQJ8TWZVOtvJE8UqydmIg JjdEIWeCuYXLW1oOrw0t3IIPC7vubeX/kl4gpF/V4TkjmQkChj16zaIlVpXykY4dgtW0 Ax681nJsAUE38FT/7KCSoPmTuP1E/nv661DPeKyWX4oqf2KAIQtr5285fWIZbpD5MCpo gi3drfgb+OodW9RKlsUloVX9SaDjCA+Wu8AOta5SAulMlXmiesnAnoQFjQwYi3G30rX9 yLLFpX3TE4+tVTWc9UD+IjG9lLFaEl13ZpVjIm19U5L7uIAv4NG+Z9y/FlOSX3no+Gl9 ltzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bjzmyPcG; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t3si6985246oth.247.2020.03.09.19.57.57; Mon, 09 Mar 2020 19:58:11 -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=@gmail.com header.s=20161025 header.b=bjzmyPcG; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726610AbgCJC5l (ORCPT + 99 others); Mon, 9 Mar 2020 22:57:41 -0400 Received: from mail-pj1-f65.google.com ([209.85.216.65]:36893 "EHLO mail-pj1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725845AbgCJC5k (ORCPT ); Mon, 9 Mar 2020 22:57:40 -0400 Received: by mail-pj1-f65.google.com with SMTP id ca13so800309pjb.2; Mon, 09 Mar 2020 19:57:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=2M6O5OzI+IU6v1/jeWA3Iv6zMngQ6Hoh4arHeMtChQg=; b=bjzmyPcG1cW+j8xHUhHoI/M2wBgQIKJz8qFuFz7kW/QIfEM83liwFjsus37E3VcopA bRGsFrCUQRCao2KdQI7jgWYfRjtNI75EyFRl2zkk0bGZcMcABZnux3C8LFpUHNQvn8+G qapx3IbWlz5Woo8+6gyMrKiYoi4CtdvK5mO4VxG5e16me0vCa7c1sRsy/MAE+HIzmYwj 2Z6xPpLgI9UjUNqkLvO29vt0AMJMtYO15H1lwBi74OgBQsTQ23265+NiMtaVODP5JTM7 Ov5JggDIK7ZnOnT/7W3xeevCclwvc+d3qLEIrP2nTQaC4UUbt2KUY9ghXjqaW+CCsfmo uBMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=2M6O5OzI+IU6v1/jeWA3Iv6zMngQ6Hoh4arHeMtChQg=; b=R4qznNQ6jcm3upOzbQ/BmjaeIgfg6XGuOv1cFV0nnc43XBioOznGvLX5QyLQ1MDgE2 8iRbI62GqOkoTQ6Gg717MT+GyCnLbzVONpnx9N0BpVdalh1clxL76Si/vhgn757JeAAd B0KsMB/zWCoZIBgZCc9ALr8nLX+nlXa+jJTEmBz+B9Q7r44DwYomg9L1jImy6vO2I5XO zIafujDs+cn9Rb5FMnIMReJ2lXnh52EDL/TIlRSgioLLfOuvWTv1NMZJ+CaTn5fV5YdA grCzTgyixM4q0PkUCIvv3fQG/liADln3jQYQH7DNHLyg/ruNBVn+WehE17exG/qtqYEV vHzA== X-Gm-Message-State: ANhLgQ2Z26sTnCeMsIhKrotYn/VuZw3oz8d/7e+TnCqN4DqBZAT6ngJP nLnkmWPv9fODGyboynid3Ms= X-Received: by 2002:a17:90a:3a8f:: with SMTP id b15mr635022pjc.178.1583809059836; Mon, 09 Mar 2020 19:57:39 -0700 (PDT) Received: from localhost (c-73-241-114-122.hsd1.ca.comcast.net. [73.241.114.122]) by smtp.gmail.com with ESMTPSA id r64sm826600pjb.15.2020.03.09.19.57.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2020 19:57:39 -0700 (PDT) Date: Mon, 9 Mar 2020 19:57:37 -0700 From: Richard Cochran To: Andrea Righi Cc: Vladis Dronov , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] ptp: free ptp clock properly Message-ID: <20200310025737.GB1679@localhost> References: <20200309172238.GJ267906@xps-13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200309172238.GJ267906@xps-13> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 09, 2020 at 06:22:38PM +0100, Andrea Righi wrote: > There is a bug in ptp_clock_unregister() where pps_unregister_source() > can free up resources needed by posix_clock_unregister() to properly > destroy a related sysfs device. This text is inadequate. It does not identify the problem. What resources? Which related device? > Fix this by calling pps_unregister_source() in ptp_clock_release(). This statement is redundant, as we can see that from the patch itself. Instead of saying WHAT the patch does, please explain WHY that fixes the issue (which, as I said, you still need to identify). Thanks, Richard