Re: [PATCH] tmpfs: change final i_blocks BUG to WARNING

2012-11-18 Thread Jaegeuk Hanse
On 11/06/2012 09:34 AM, Hugh Dickins wrote: Under a particular load on one machine, I have hit shmem_evict_inode()'s BUG_ON(inode->i_blocks), enough times to narrow it down to a particular race between swapout and eviction. It comes from the "if (freed > 0)" asymmetry in shmem_recalc_ino

[PATCH] tmpfs: change final i_blocks BUG to WARNING

2012-11-05 Thread Hugh Dickins
Under a particular load on one machine, I have hit shmem_evict_inode()'s BUG_ON(inode->i_blocks), enough times to narrow it down to a particular race between swapout and eviction. It comes from the "if (freed > 0)" asymmetry in shmem_recalc_inode(), and the lack of coherent locking between mapping