diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2022-01-14 11:05:13 +0300 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2022-02-15 17:01:40 +0300 |
commit | a4e8145edcfd66b69056c59885770b428eccca59 (patch) | |
tree | ad4979d4bcc381fa2c36082900350d6618570a8a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 5a27a43efd1d5cd55dd5988cac596bdea7294d73 (diff) | |
download | linux-a4e8145edcfd66b69056c59885770b428eccca59.tar.xz |
gfs2: Initialize gh_error in gfs2_glock_nq
The gh_error field if a glock holder is initialized to zero in
gfs2_holder_init(). When a locking operation fails, gh_error is set to
an error code; when it succeeds, the gh_error value is left unchanged.
The field isn't initialized in gfs2_holder_reinit(), which is a problem.
Instead of fixing that directly, initialize gh_error in gfs2_glock_nq().
That also obsoletes the assignment in do_flock().
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions