Re: fs: page cache wrongly left invalidated after revalidate_disk

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

 



MITSUNARI Shigeo <herumi@xxxxxxxxx> writes:

> Hi, 
>
> We found that bdev->bd_invalidated was left set once revalidate_disk() 
> is called, which results in page cache flush every time that device 
> is open. 
>
> Specifically, we found this problem in MD block device.  Once we 
> resize a MD device, mdadm --monitor periodically flush all page cache 
> for that device every 60 or 1000 seconds when it opens the device. 
>
> This bug lies since at least 3.2.0 till the latest kernel(3.6.2). 
> Patch is attached. 
>
> Anyone please review this?  Thanks in advance.

rescan_partitions (called in the bdev open path) should reset
bd_invalidated.  I think you need to dig into why that isn't happening.

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


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux