Jeff Layton a87c9ad956 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 <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
2014-04-24 22:37:03 -05:00
..
2013-10-24 23:34:49 -04:00
2014-04-16 23:08:57 -05:00
2013-11-08 05:57:46 +09:00
2013-06-26 23:45:05 -05:00
2007-06-05 18:30:44 +00:00
2013-11-11 16:31:03 -06:00
2014-04-16 13:51:46 -05:00
2012-07-24 10:25:13 -05:00
2013-09-08 14:54:24 -05:00