From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751230AbeACS5x (ORCPT + 1 other); Wed, 3 Jan 2018 13:57:53 -0500 Received: from mail-wm0-f50.google.com ([74.125.82.50]:34676 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751131AbeACS5s (ORCPT ); Wed, 3 Jan 2018 13:57:48 -0500 X-Google-Smtp-Source: ACJfBouNbBglCWYDiefHudg6rmA0t5CXrX7lPNIMU6+MCVqOlO74SCKXjrMY4dHdwOMVXUxVtFilHQ== Date: Wed, 3 Jan 2018 21:51:20 +0300 From: Alexey Dobriyan To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH -mm] proc: fixup comment Message-ID: <20180103185120.GB31849@avx2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Document what ->pde_unload_lock actually does. Signed-off-by: Alexey Dobriyan --- fs/proc/internal.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/fs/proc/internal.h +++ b/fs/proc/internal.h @@ -38,7 +38,8 @@ struct proc_dir_entry { atomic_t in_use; atomic_t count; /* use count */ struct list_head pde_openers; /* who did ->open, but not ->release */ - spinlock_t pde_unload_lock; /* proc_fops checks and pde_users bumps */ + /* protects ->pde_openers and all struct pde_opener instances */ + spinlock_t pde_unload_lock; struct completion *pde_unload_completion; const struct inode_operations *proc_iops; const struct file_operations *proc_fops;