Re: [PATCH] module: add per-module param_lock

2015-06-14 Thread Rusty Russell
Dan Streetman writes: > You suggested giving direct access to the mutex, but this patch just > provides lock/unlock functions to the appropriate mutex, which seemed > cleaner and clearer to me, but if you prefer the direct mutex access > I can update the patch for that. Happy with your judgement

[PATCH] module: add per-module param_lock

2015-06-12 Thread Dan Streetman
Add a "param_lock" mutex to each module, and update params.c to use the correct built-in or module mutex while locking kernel params. Remove the kparam_block_sysfs_r/w() macros, replace them with direct calls to kernel_param_[un]lock(module). The kernel param code currently uses a single mutex to