gfs2: Stop using glock holder auto-demotion for now
authorAndreas Gruenbacher <agruenba@redhat.com>
Wed, 11 May 2022 16:27:12 +0000 (18:27 +0200)
committerAndreas Gruenbacher <agruenba@redhat.com>
Fri, 13 May 2022 20:32:52 +0000 (22:32 +0200)
commite1fa9ea85ce89207d2ac0316da35a4a7736801f9
treedad595eb52fd94ceea070f39918f7a6fa6ca3e18
parentfa5dfa645d85910d747f4e0c97f19e5e97d1c270
gfs2: Stop using glock holder auto-demotion for now

We're having unresolved issues with the glock holder auto-demotion mechanism
introduced in commit dc732906c245.  This mechanism was assumed to be essential
for avoiding frequent short reads and writes until commit 296abc0d91d8
("gfs2: No short reads or writes upon glock contention").  Since then,
when the inode glock is lost, it is simply re-acquired and the operation
is resumed.  This means that apart from the performance penalty, we
might as well drop the inode glock before faulting in pages, and
re-acquire it afterwards.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/file.c