Whamcloud - gitweb
b=20645 fix potential stale-read.
authorEric Mei <Eric.Mei@Sun.COM>
Fri, 8 Jan 2010 23:30:39 +0000 (16:30 -0700)
committerRobert Read <rread@sun.com>
Fri, 8 Jan 2010 23:45:26 +0000 (15:45 -0800)
commitc19491b3e24f2d8729a98dd6cffd91a48bb0efa4
tree1184f7546ef4637a4412dc12769a76a9935f9859
parent42c04e8ee918adb6ce658334c12610e925466752
b=20645 fix potential stale-read.

Due to race between read and truncate, read may populate cache pages outside
of the file size range, then next truncate-expand will see the stale page.
To fix this, we do a second vmtruncate at the end of truncation.

i=jay
i=robert
lustre/llite/vvp_io.c