[PATCH] Set MS_ACTIVE in isofs_fill_super()

From: Russ Weight (rweight_at_us.ibm.com)
Date: 03/30/05

  • Next message: Jeff Moyer: "[patch] filemap_getpage can block when MAP_NONBLOCK specified"
    To: lkml <linux-kernel@vger.kernel.org>
    Date:	Wed, 30 Mar 2005 12:09:52 -0800
    
    

    This patch sets the MS_ACTIVE bit in isofs_fill_super() prior to calling
    iget() or iput(). This eliminates a race condition between mount
    (for isofs) and kswapd that results in a system panic.

    Signed-off-by: Russ Weight <rweight@us.ibm.com>

    --- linux-2.6.12-rc1/fs/isofs/inode.c 2005-03-17 17:34:36.000000000
    -0800
    +++ linux-2.6.12-rc1-isofsfix/fs/isofs/inode.c 2005-03-22
    15:29:51.945607217 -0800
    @@ -820,6 +820,7 @@
              * the s_rock flag. Once we have the final s_rock value,
              * we then decide whether to use the Joliet descriptor.
              */
    + s->s_flags |= MS_ACTIVE;
             inode = isofs_iget(s, sbi->s_firstdatazone, 0);
     
             /*
    @@ -909,6 +910,7 @@
                     kfree(opt.iocharset);
             kfree(sbi);
             s->s_fs_info = NULL;
    + s->s_flags &= ~MS_ACTIVE;
             return -EINVAL;
     }
     

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Jeff Moyer: "[patch] filemap_getpage can block when MAP_NONBLOCK specified"

    Relevant Pages

    • Re: [PATCH] Set MS_ACTIVE in isofs_fill_super()
      ... This eliminates a race condition between mount ... > (for isofs) and kswapd that results in a system panic. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: the umount() saga for regular linux desktop users
      ... Don't know about vfat, which is how I mount a floppy, but I just put ... Copyright 2004 by Maurice Eugene Heskett, ... send the line "unsubscribe linux-kernel" in ... More majordomo info at http://vger.kernel.org/majordomo-info.html ...
      (Linux-Kernel)
    • RE: 2.6.10: kswapd spins like crazy
      ... We are using smp Opteron boxes as NFS servers. ... kswapd lingers longer as the most aggressive app in top, but with 2.6.7, ... gigabit nics (Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Panic with mounting CD in 2.6.0test8
      ... Attempt to mount a particular CD, which I'm thinking is just an ordinary ... Windows sees it as a data disk with one big AVI file on it. ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • RE: Can not read UDF CD
      ... I see this UDF disc image did Not arrive here in a usable form: ... Aug 17 07:48:20 patlinux pat: 1 ... I missed how Ben F's suggestion of mount -t udf -o session=$n worked ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)