Skip to content
Commit a4e8145e authored by Andreas Gruenbacher's avatar Andreas Gruenbacher
Browse files

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: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent 5a27a43e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment