* [mmotm:master 110/152] fs/proc/inode.c:382:3-9: preceding lock on line 378 (fwd)
@ 2018-02-25 16:48 Julia Lawall
2018-02-25 22:21 ` Alexey Dobriyan
0 siblings, 1 reply; 2+ messages in thread
From: Julia Lawall @ 2018-02-25 16:48 UTC (permalink / raw)
To: Alexey Dobriyan
Cc: Johannes Weiner, Andrew Morton, Linux Memory Management List, kbuild-all
Please check whether an unlock is missing before line 382.
julia
---------- Forwarded message ----------
Date: Mon, 26 Feb 2018 00:11:20 +0800
From: kbuild test robot <fengguang.wu@intel.com>
To: kbuild@01.org
Cc: Julia Lawall <julia.lawall@lip6.fr>
Subject: [mmotm:master 110/152] fs/proc/inode.c:382:3-9: preceding lock on line
378
CC: kbuild-all@01.org
TO: Alexey Dobriyan <adobriyan@gmail.com>
CC: Johannes Weiner <hannes@cmpxchg.org>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: Linux Memory Management List <linux-mm@kvack.org>
tree: git://git.cmpxchg.org/linux-mmotm.git master
head: 745388a34645dd2b69f5e7115ad47fea7a218726
commit: 2e2d47fa3e1f9dff0e77de6edb123f024bf7841b [110/152] proc: do less stuff under ->pde_unload_lock
:::::: branch date: 4 days ago
:::::: commit date: 4 days ago
>> fs/proc/inode.c:382:3-9: preceding lock on line 378
git remote add mmotm git://git.cmpxchg.org/linux-mmotm.git
git remote update mmotm
git checkout 2e2d47fa3e1f9dff0e77de6edb123f024bf7841b
vim +382 fs/proc/inode.c
786d7e16 Alexey Dobriyan 2007-07-15 373
786d7e16 Alexey Dobriyan 2007-07-15 374 static int proc_reg_release(struct inode *inode, struct file *file)
786d7e16 Alexey Dobriyan 2007-07-15 375 {
786d7e16 Alexey Dobriyan 2007-07-15 376 struct proc_dir_entry *pde = PDE(inode);
881adb85 Alexey Dobriyan 2008-07-25 377 struct pde_opener *pdeo;
786d7e16 Alexey Dobriyan 2007-07-15 @378 spin_lock(&pde->pde_unload_lock);
ca469f35 Al Viro 2013-04-03 379 list_for_each_entry(pdeo, &pde->pde_openers, lh) {
ca469f35 Al Viro 2013-04-03 380 if (pdeo->file == file) {
ca469f35 Al Viro 2013-04-03 381 close_pdeo(pde, pdeo);
2e2d47fa Alexey Dobriyan 2018-02-21 @382 return 0;
786d7e16 Alexey Dobriyan 2007-07-15 383 }
881adb85 Alexey Dobriyan 2008-07-25 384 }
786d7e16 Alexey Dobriyan 2007-07-15 385 spin_unlock(&pde->pde_unload_lock);
ca469f35 Al Viro 2013-04-03 386 return 0;
786d7e16 Alexey Dobriyan 2007-07-15 387 }
786d7e16 Alexey Dobriyan 2007-07-15 388
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [mmotm:master 110/152] fs/proc/inode.c:382:3-9: preceding lock on line 378 (fwd)
2018-02-25 16:48 [mmotm:master 110/152] fs/proc/inode.c:382:3-9: preceding lock on line 378 (fwd) Julia Lawall
@ 2018-02-25 22:21 ` Alexey Dobriyan
0 siblings, 0 replies; 2+ messages in thread
From: Alexey Dobriyan @ 2018-02-25 22:21 UTC (permalink / raw)
To: Julia Lawall
Cc: Johannes Weiner, Andrew Morton, Linux Memory Management List, kbuild-all
On Sun, Feb 25, 2018 at 05:48:40PM +0100, Julia Lawall wrote:
> Please check whether an unlock is missing before line 382.
False positive.
> ---------- Forwarded message ----------
> Date: Mon, 26 Feb 2018 00:11:20 +0800
> From: kbuild test robot <fengguang.wu@intel.com>
> To: kbuild@01.org
> Cc: Julia Lawall <julia.lawall@lip6.fr>
> Subject: [mmotm:master 110/152] fs/proc/inode.c:382:3-9: preceding lock on line
> 378
>
> CC: kbuild-all@01.org
> TO: Alexey Dobriyan <adobriyan@gmail.com>
> CC: Johannes Weiner <hannes@cmpxchg.org>
> CC: Andrew Morton <akpm@linux-foundation.org>
> CC: Linux Memory Management List <linux-mm@kvack.org>
>
> tree: git://git.cmpxchg.org/linux-mmotm.git master
> head: 745388a34645dd2b69f5e7115ad47fea7a218726
> commit: 2e2d47fa3e1f9dff0e77de6edb123f024bf7841b [110/152] proc: do less stuff under ->pde_unload_lock
> :::::: branch date: 4 days ago
> :::::: commit date: 4 days ago
>
> >> fs/proc/inode.c:382:3-9: preceding lock on line 378
>
> git remote add mmotm git://git.cmpxchg.org/linux-mmotm.git
> git remote update mmotm
> git checkout 2e2d47fa3e1f9dff0e77de6edb123f024bf7841b
> vim +382 fs/proc/inode.c
>
> 786d7e16 Alexey Dobriyan 2007-07-15 373
> 786d7e16 Alexey Dobriyan 2007-07-15 374 static int proc_reg_release(struct inode *inode, struct file *file)
> 786d7e16 Alexey Dobriyan 2007-07-15 375 {
> 786d7e16 Alexey Dobriyan 2007-07-15 376 struct proc_dir_entry *pde = PDE(inode);
> 881adb85 Alexey Dobriyan 2008-07-25 377 struct pde_opener *pdeo;
> 786d7e16 Alexey Dobriyan 2007-07-15 @378 spin_lock(&pde->pde_unload_lock);
> ca469f35 Al Viro 2013-04-03 379 list_for_each_entry(pdeo, &pde->pde_openers, lh) {
> ca469f35 Al Viro 2013-04-03 380 if (pdeo->file == file) {
> ca469f35 Al Viro 2013-04-03 381 close_pdeo(pde, pdeo);
> 2e2d47fa Alexey Dobriyan 2018-02-21 @382 return 0;
> 786d7e16 Alexey Dobriyan 2007-07-15 383 }
> 881adb85 Alexey Dobriyan 2008-07-25 384 }
> 786d7e16 Alexey Dobriyan 2007-07-15 385 spin_unlock(&pde->pde_unload_lock);
> ca469f35 Al Viro 2013-04-03 386 return 0;
> 786d7e16 Alexey Dobriyan 2007-07-15 387 }
> 786d7e16 Alexey Dobriyan 2007-07-15 388
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-02-25 22:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-25 16:48 [mmotm:master 110/152] fs/proc/inode.c:382:3-9: preceding lock on line 378 (fwd) Julia Lawall
2018-02-25 22:21 ` Alexey Dobriyan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.