[lkml]   [2012]   [Jan]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] deadlock with suspend and quotas

    On Tue, 3 Jan 2012, Al Viro wrote:

    > On Fri, Nov 25, 2011 at 03:25:16PM -0500, Mikulas Patocka wrote:
    > > The following patch fixes the deadlock. When the quota subsystem takes s_umount,
    > > it checks if the filesystem is frozen. If it is, we drop s_umount, wait for
    > > the filesystem to resume and retry.
    > >
    > > Signed-off-by: Mikulas Patocka <>
    > > CC:
    > So basically you want a variant of get_super() that would get you a
    > superblock for this bdev, locked and unfrozen? Fair enough, but
    > * that should be a proper helper in super.c, rather than
    > open-coded in fs/quota/quota.c, of all places
    > * what about other existing callers get_super() and its friends?


    You can look at that functionality here: I've already made a patch that
    has it:

    Basically, the patch introduces a function down_read_s_umount, which takes
    s_umount for read, but makes sure that the filesystem is not frozen. Then,
    it adds a boolean parameter to get_super() which tells get_super() that it
    should wait for unfreeze (i.e. call "down_read_s_umount" isntead of


    > and while we are at it, why in damnation name is it exported? The only
    > caller outside of core VFS is under #if 0...

     \ /
      Last update: 2012-01-03 19:25    [W:0.020 / U:19.388 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site