Re: [PATCH] Ext4: Fix delalloc enospace handling counter update race

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 14, 2008 at 10:54:36AM -0700, Mingming Cao wrote:
> Updated patch with only the first race fix, 
> 
> If no objection I will fold this to the parent patch
> delalloc-ext4-ENOSPC-handling.patch in the patch queue.

If you're going to fold this to the parent patch (which makes sense),
the following grammatical correction won't be necessary, but here are
some mostly verb tense fixups.

> Ext4: Fix delalloc enospace handling counter update race
> 
> From: Mingming Cao <cmm@xxxxxxxxxx>
> 
> Ext4 delalloc reserve meta blocks ahead of time so later when real block
                reserves
> allocation fs will not short of free blocks for allocating meta blocks.
  	        "will not run out"
> It keeps track of the real number of new allocated meta data blocks, so
     	   	    	     	       newly                          and
> after block allocation it will update how much meta data blocks still
                            updates
> need to be reserved for that inode.
> 
> Both per inode reserved metadata blocks and per-allocation allocated metablocks
> are protected by the per inode delalloc reservation lock. The per-allocation
> allocated metablocks counter should be protected by the i_data_sem as well,
> so that it could avoid race with other block allocation to the same inode
  to avoid racing with ther block allocations
> in parallel. The patch moves the code under the i_data_sem protection.

Please feel free to add a

       Signed-off-by: "Theodore Ts'o" <tytso@xxxxxxx>

to the patch.

     	       	   	       	   	      - Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux