Re: [PATCH v2 12/17] xen/hypfs: add new enter() and exit() per node callbacks

2020-12-04 Thread Jürgen Groß
On 04.12.20 09:30, Jan Beulich wrote: On 01.12.2020 09:21, Juergen Gross wrote: @@ -100,11 +112,58 @@ static void hypfs_unlock(void) } } +const struct hypfs_entry *hypfs_node_enter(const struct hypfs_entry *entry) +{ +return entry; +} + +void hypfs_node_exit(const struct hypfs_en

Re: [PATCH v2 12/17] xen/hypfs: add new enter() and exit() per node callbacks

2020-12-04 Thread Jürgen Groß
On 03.12.20 16:29, Jan Beulich wrote: On 03.12.2020 16:14, Jürgen Groß wrote: On 03.12.20 15:59, Jan Beulich wrote: On 01.12.2020 09:21, Juergen Gross wrote: @@ -100,11 +112,58 @@ static void hypfs_unlock(void) } } +const struct hypfs_entry *hypfs_node_enter(const struct hypfs_en

Re: [PATCH v2 12/17] xen/hypfs: add new enter() and exit() per node callbacks

2020-12-04 Thread Jan Beulich
On 01.12.2020 09:21, Juergen Gross wrote: > @@ -100,11 +112,58 @@ static void hypfs_unlock(void) > } > } > > +const struct hypfs_entry *hypfs_node_enter(const struct hypfs_entry *entry) > +{ > +return entry; > +} > + > +void hypfs_node_exit(const struct hypfs_entry *entry) > +{ > +} > +

Re: [PATCH v2 12/17] xen/hypfs: add new enter() and exit() per node callbacks

2020-12-03 Thread Jan Beulich
On 03.12.2020 16:14, Jürgen Groß wrote: > On 03.12.20 15:59, Jan Beulich wrote: >> On 01.12.2020 09:21, Juergen Gross wrote: >>> @@ -100,11 +112,58 @@ static void hypfs_unlock(void) >>> } >>> } >>> >>> +const struct hypfs_entry *hypfs_node_enter(const struct hypfs_entry *entry) >>> +{ >>

Re: [PATCH v2 12/17] xen/hypfs: add new enter() and exit() per node callbacks

2020-12-03 Thread Jürgen Groß
On 03.12.20 15:59, Jan Beulich wrote: On 01.12.2020 09:21, Juergen Gross wrote: In order to better support resource allocation and locking for dynamic hypfs nodes add enter() and exit() callbacks to struct hypfs_funcs. The enter() callback is called when entering a node during hypfs user action

Re: [PATCH v2 12/17] xen/hypfs: add new enter() and exit() per node callbacks

2020-12-03 Thread Jan Beulich
On 01.12.2020 09:21, Juergen Gross wrote: > In order to better support resource allocation and locking for dynamic > hypfs nodes add enter() and exit() callbacks to struct hypfs_funcs. > > The enter() callback is called when entering a node during hypfs user > actions (traversing, reading or writi

[PATCH v2 12/17] xen/hypfs: add new enter() and exit() per node callbacks

2020-12-01 Thread Juergen Gross
In order to better support resource allocation and locking for dynamic hypfs nodes add enter() and exit() callbacks to struct hypfs_funcs. The enter() callback is called when entering a node during hypfs user actions (traversing, reading or writing it), while the exit() callback is called when lea