[PATCH 2/7] pstore: locking: dont lock unless caller asks to

2016-10-20 Thread Joel Fernandes
In preparation of not locking at all for certain buffers depending on if there's contention, make locking optional depending if caller requested it. Signed-off-by: Joel Fernandes --- fs/pstore/ram.c| 10 +- fs/pstore/ram_core.c | 27 --- include/

Re: [PATCH 2/7] pstore: locking: dont lock unless caller asks to

2016-10-11 Thread Joel Fernandes
On Mon, Oct 10, 2016 at 4:48 PM, Kees Cook wrote: > On Fri, Oct 7, 2016 at 10:28 PM, Joel Fernandes wrote: >> In preparation of not locking at all for certain buffers depending on if >> there's contention, make locking optional depending if caller requested it. > > This should be a bool argument

Re: [PATCH 2/7] pstore: locking: dont lock unless caller asks to

2016-10-10 Thread Kees Cook
On Fri, Oct 7, 2016 at 10:28 PM, Joel Fernandes wrote: > In preparation of not locking at all for certain buffers depending on if > there's contention, make locking optional depending if caller requested it. This should be a bool argument (or enum), with named values so it's more readable. For ex

[PATCH 2/7] pstore: locking: dont lock unless caller asks to

2016-10-07 Thread Joel Fernandes
In preparation of not locking at all for certain buffers depending on if there's contention, make locking optional depending if caller requested it. Signed-off-by: Joel Fernandes --- fs/pstore/ram.c| 10 +- fs/pstore/ram_core.c | 27 --- include/