diff options
| author | Jeff Layton <[email protected]> | 2014-03-26 14:24:23 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2014-04-25 03:37:03 +0000 |
| commit | a87c9ad956676d84d459739fc14ec5a3c3565717 (patch) | |
| tree | 5e5da8ae521dc675775ee65f0964121a5d752d26 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | Merge tag 'regulator-v3.15-rc2' of git://git.kernel.org/pub/scm/linux/kernel/... (diff) | |
| download | kernel-a87c9ad956676d84d459739fc14ec5a3c3565717.tar.gz kernel-a87c9ad956676d84d459739fc14ec5a3c3565717.zip | |
cifs: fix actimeo=0 corner case when cifs_i->time == jiffies
actimeo=0 is supposed to be a special case that ensures that inode
attributes are always refetched from the server instead of trusting the
cache. The cifs code however uses time_in_range() to determine whether
the attributes have timed out. In the case where cifs_i->time equals
jiffies, this leads to the cifs code not refetching the inode attributes
when it should.
Fix this by explicitly testing for actimeo=0, and handling it as a
special case.
Reported-and-tested-by: Tetsuo Handa <[email protected]>
Signed-off-by: Jeff Layton <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions
