Re: [PATCH v3 3/7] debugfs: add support for self-protecting attribute file fops

2016-02-14 Thread Julia Lawall
> >> diff --git a/scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci > >> b/scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci > >> new file mode 100644 > >> index 000..bdc418d > >> --- /dev/null > >> +++ b/scripts/coccinelle/api/debugfs/debugfs_simple_attr.cocci > >> @@ -0,0 +1,68

Re: [PATCH v3 3/7] debugfs: add support for self-protecting attribute file fops

2016-02-14 Thread Nicolai Stange
Julia Lawall writes: > On Sun, 14 Feb 2016, Nicolai Stange wrote: > >> In order to protect them against file removal issues, debugfs_create_file() >> creates a lifetime managing proxy around each struct file_operations >> handed in. >> >> In cases where this struct file_operations is able to man

Re: [PATCH v3 3/7] debugfs: add support for self-protecting attribute file fops

2016-02-13 Thread Julia Lawall
On Sun, 14 Feb 2016, Nicolai Stange wrote: > In order to protect them against file removal issues, debugfs_create_file() > creates a lifetime managing proxy around each struct file_operations > handed in. > > In cases where this struct file_operations is able to manage file lifetime > by itself