diff options
| author | 2015-12-26 22:47:36 -0800 | |
|---|---|---|
| committer | 2016-02-03 14:22:53 -0800 | |
| commit | a4113d61e53c6cd866f1e760648a41ff95c9b9ba (patch) | |
| tree | bf5401dc5460cdce5596825f7ada2e10e0d4f5ee /include/linux/flex_array.h | |
| parent | drivers/staging/lustre: Nuke another unsigned >= 0 assert (diff) | |
staging: lustre: fix lock imbalance
nrs_resource_put_safe() might hold a lock one one struct
while operating on the other.
There are 2 levels of structures.
Use nrs_policy_put(), which has locking baked in.
sparse gives the following warning:
drivers/staging/lustre//lustre/ptlrpc/nrs.c:498:39:
warning: context imbalance in 'nrs_resource_put_safe' -
different lock contexts for basic block
Signed-off-by: Joshua Clayton <stillcompiling@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/flex_array.h')
0 files changed, 0 insertions, 0 deletions
