]> Gentwo Git Trees - linux/.git/commit
gfs2: Fix request cancelation bug
authorAndreas Gruenbacher <agruenba@redhat.com>
Wed, 5 Feb 2025 16:16:38 +0000 (17:16 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Wed, 12 Feb 2025 16:31:08 +0000 (17:31 +0100)
commitd360f2878e2907a51677fbafb04d326126ff2183
treed689609c38082842948e7a72111c1ab5c0d51cdd
parent3c0cba966fbf6cd4326e8fc889432751df259311
gfs2: Fix request cancelation bug

In finish_xmote(), when a locking request is canceled, the corresponding
holder is moved to the tail of the holders list instead of being
dequeued immediately.  When there is only a single holder, the canceled
locking request is then immediately repeated.  This makes no sense; it
looks like another remnant of LM_FLAG_PRIORITY support.

Instead, dequeue canceled holders and proceed with the next holder in
finish_xmote().  We can then easily detect in gfs2_glock_dq() when a
holder has been canceled.

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