Re: [Qemu-devel] Fix refcounting in hugetlbfs quota handling

2011-08-16 Thread Andrew Barry
get this going. (done) 2. For you all to review the patch and let me know if I've missed anything. Patch RFC coming ASAP. -Andrew Barry On 08/15/2011 10:47 PM, David Gibson wrote: > On Mon, Aug 15, 2011 at 03:25:35PM -0500, Andrew Barry wrote: >> I've been doing something s

[Qemu-devel] [RFC PATCH] mm/hugepages: Fix race between hugetlbfs umount and quota update.

2011-08-16 Thread Andrew Barry
unmounted, it frees the hugetlbfs_sb_info struct, but only if the reference count is zero, otherwise it clears the active bit. The last hugetlb_put_quota then frees the hugetlbfs_sb_info struct. Signed-off-by: Andrew Barry --- fs/hugetlbfs/inode.c| 40

Re: [Qemu-devel] Fix refcounting in hugetlbfs quota handling

2011-08-15 Thread Andrew Barry
dress the problems you were thinking about? -Andrew Barry diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index 87b6e04..2ed1cca 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c @@ -615,8 +615,12 @@ static void hugetlbfs_put_super(struct s struct hugetlbfs_sb_info