Skip to content
Commit f75efefb authored by Andreas Gruenbacher's avatar Andreas Gruenbacher
Browse files

gfs2: Clean up glock demote logic



The logic for determining when to demote a glock in glock_work_func(),
introduced in commit 7cf8dcd3 ("GFS2: Automatically adjust glock min
hold time"), doesn't make sense: inode glocks have a minimum hold time
that delays demotion, while all other glocks are expected to be demoted
immediately.  Instead of demoting non-inode glocks immediately,
glock_work_func() schedules glock work for them to be demoted, however.
Get rid of that unnecessary indirection.

Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent 5a1906a4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment