Skip to contentSkip to conversation

cluster: RHEL5 - gfs-kmod: workaround for bz472062. Prefault user pages

Cluster-devel Fabio M. Di Nitto 1 participant 1 message Nov 19, 2008 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 10 lines · Benjamin Marzinski
Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=f8db02213bbab00d8852ab889d92a921197ce20d
Commit:        f8db02213bbab00d8852ab889d92a921197ce20d
Parent:        1296918baf0672815611aedcd537f9d558ceefd6
Author:        Benjamin Marzinski <[email protected]>
AuthorDate:    Tue Nov 18 09:57:56 2008 -0600
Committer:     Benjamin Marzinski <[email protected]>
CommitterDate: Tue Nov 18 09:57:56 2008 -0600

gfs-kmod: workaround for bz472062. Prefault user pages

Quoted 12 lines

The bug uncovered in 472062 does not seem fixable without a massive change to how gfs works. There is a lock ordering mismatch between the process address space lock and the glocks. The only good way to avoid this in all cases is to not hold the glock for so long, which is what gfs2 does. This is impossible without completely changing how gfs does locking. Fortunately, this is only a problem when you have multiple processes sharing an address space, and are doing IO to a gfs file with a userspace buffer that's part of an mmapped gfs file. In this case, prefaulting the buffer's pages immediately before acquiring the glocks significantly shortens the window for this deadlock. Closing the window any more causes a large performance hit.

Is this fix suitable for master and STABLE2 branches as well?

Fabio

--
I'm going to make him an offer he can't refuse.