From: Jeff Layton Date: Wed, 26 Mar 2014 14:24:23 +0000 (-0700) Subject: cifs: fix actimeo=0 corner case when cifs_i->time == jiffies X-Git-Tag: omap-for-v3.16/fixes-against-rc1~192^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a87c9ad956676d84d459739fc14ec5a3c3565717;p=pandora-kernel.git 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 Signed-off-by: Jeff Layton Signed-off-by: Steve French --- Reading git-diff-tree failed