{"push_id":1306412057,"size":1,"distinct_size":1,"ref":"refs/heads/6.0.1","head":"86dfdd16f7ad34b6e0e10d45715b4557e7e3eccc","before":"1b2fd381231d85f5ee3b35bdeee232e41e105033","commits":[{"sha":"86dfdd16f7ad34b6e0e10d45715b4557e7e3eccc","author":{"name":"MITSUNARI Shigeo","email":"d8f5b2d16d4da12b7ebf2dbb1df631398f5b33b2@nifty.com"},"message":"fs/block_dev.c: page cache wrongly left invalidated after revalidate_disk()\n\ncommit 7630b661da330b35dd57b6f5d6d62b386f2dd751 upstream.\n\nWe found that bdev->bd_invalidated was left set once revalidate_disk()\nis called, which results in page cache flush every time that device is\nopen.\n\nSpecifically, we found this problem in MD block device.  Once we resize\na MD device, mdadm --monitor periodically flush all page cache for that\ndevice every 60 or 1000 seconds when it opens the device.\n\nThis bug lies since at least 3.2.0 till the latest kernel(3.6.2).  Patch\nis attached.\n\nThe following steps will reproduce the problem.\n\n1. prepair a block device (eg /dev/sdb).\n\n2. create two partitions:\n\n   sudo parted /dev/sdb\n   mklabel gpt\n   mkpart primary 0% 50%\n   mkpart primary 50% 100%\n\n3. create a md device.\n\n   sudo mdadm -C /dev/md/hoge -l 1 -n 2 -e 1.2 --assume-clean --auto=md --symlink=no /dev/sdb1 /dev/sdb2\n\n4. create file system and mount it\n\n   sudo mkfs.ext3 /dev/md/hoge\n   sudo mkdir /mnt/test\n   sudo mount /dev/md/hoge /mnt/test\n\n5. try to resize the device\n\n   sudo mdadm -G /dev/md/hoge --size=max\n\n6. create a file to fill file cache.\n\n  sudo dd if=/dev/urandom of=/mnt/test/data bs=1M count=10\n\nand verify the current status of file by free command.\n\n7. mdadm monitor will open the md device every 1000 seconds and you\n   will find all file cache on the device are cleared.\n\nThe timing can be reduced by the following steps.\n\na) kill mdadm and restart it with --delay option\n\n   /sbin/mdadm --monitor --delay=30 --pid-file /var/run/mdadm/monitor.pid --daemonise --scan --syslog\n\nor open the md device directly.\n\n   sudo dd if=/dev/md/hoge of=/dev/null bs=4096 count=1\n\nSigned-off-by: MITSUNARI Shigeo <herumi@nifty.com>\nCc: Al Viro <viro@zeniv.linux.org.uk>\nCc: Jeff Moyer <jmoyer@redhat.com>\nSigned-off-by: Andrew Morton <akpm@linux-foundation.org>\nSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>\nSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>","distinct":true,"url":"https://api.github.com/repos/dblockopp/G3_CooCoo_Kernel/commits/86dfdd16f7ad34b6e0e10d45715b4557e7e3eccc"}]}
{"actor":{"display_login":"dblockopp"}}