aboutsummaryrefslogtreecommitdiff
path: root/crypto/khazad.c
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2021-10-01 13:00:21 -0500
committerAndreas Gruenbacher <agruenba@redhat.com>2021-10-25 08:42:19 +0200
commit8793e149859ab44d702ff72ed5e50645cec55966 (patch)
tree728043fe222b229bb4df984e81e919777a1d9ac2 /crypto/khazad.c
parent4b3113a2573168e382fb64397ba1481f3b2a1ad7 (diff)
gfs2: set glock object after nq
Before this patch, function gfs2_create_inode called glock_set_object to set the gl_object for inode and iopen glocks before the glock was locked. That's wrong because other competing processes like evict may be blocked waiting for the glock and still have gl_object set before the actual eviction can take place. This patch moves the call to glock_set_object until after the glock is acquire in function gfs2_create_inode, so it waits for possibly competing evicts to finish their processing first. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'crypto/khazad.c')
0 files changed, 0 insertions, 0 deletions