diff options
| author | NeilBrown <[email protected]> | 2018-02-20 13:23:38 +1100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-02-22 15:06:36 +0100 |
| commit | 8689a5027c7cfb8ee25318127262fbc974662d26 (patch) | |
| tree | 0c9c8b1418444b9e28ce83d8940ba0cd1d284d50 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 8ede253133d45d510dacfde86ba836fd301e8c06 (diff) | |
staging: lustre: fid: fix up debugfs access to ->lcs_space
lcs_space can change while the lock is not held
if an RPC in underway. This can be detected by
seq->ls_update being set.
In this case, reading or writing the value should return
-EBUSY.
Also, the D_INFO CDEBUG() which reports the lcs_space being
updated never fires, as it tests the wrong value -
ldebugfs_fid_write_common() returns 'count' on success.
Finally, this return value should be returned from
ldebugfs_fid_space_seq_write(), rather than always returning 'count',
so that errors can be detected.
Signed-off-by: NeilBrown <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions