gfs2: Switch lock order of inode and iopen glock
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 24 Jan 2022 17:23:57 +0000 (12:23 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 15 Feb 2022 14:01:40 +0000 (15:01 +0100)
commit29464ee36bcaaee2691249f49b9592b8d5c97ece
tree99692d47f141f020a84e4f2c8832ad63f4778429
parent1fc05c8d8426d4085a219c23f8855c4aaf9e3ffb
gfs2: Switch lock order of inode and iopen glock

This patch tries to fix the continual ABBA deadlocks we keep having
between the iopen and inode glocks. This switches the lock order in
gfs2_inode_lookup and gfs2_create_inode so the iopen glock is always
locked first.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/inode.c