]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite3420988fe22eb34d85741f18d2fec4bfd6ae165
tree99692d47f141f020a84e4f2c8832ad63f4778429
parentd5ab065d4f5ddcb5526e22c73fa9b6b56ca80ffb
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