summaryrefslogtreecommitdiff
path: root/crypto/compress.c
diff options
context:
space:
mode:
authorRabin Vincent <rabinv@axis.com>2016-07-19 10:25:45 +0300
committerSteve French <smfrench@gmail.com>2016-07-19 20:19:45 +0300
commitb782fcc1cbeb7e336c0ed1f00004b2208f48ffe0 (patch)
tree3a2a706873393f574f4927d6ca86b8bad1313f93 /crypto/compress.c
parent8d9535b6efd86e6c07da59f97e68f44efb7fe080 (diff)
downloadlinux-b782fcc1cbeb7e336c0ed1f00004b2208f48ffe0.tar.xz
cifs: unbreak TCP session reuse
adfeb3e0 ("cifs: Make echo interval tunable") added a comparison of vol->echo_interval to server->echo_interval as a criterium to match_server(), but: (1) A default value is set for server->echo_interval but not for vol->echo_interval, meaning these can never match if the echo_interval option is not specified. (2) vol->echo_interval is in seconds but server->echo_interval is in jiffies, meaning these can never match even if the echo_interval option is specified. This broke TCP session reuse since match_server() can never return 1. Fix it. Fixes: adfeb3e0 ("cifs: Make echo interval tunable") Signed-off-by: Rabin Vincent <rabinv@axis.com> Acked-by: Sachin Prabhu <sprabhu@redhat.com> CC: Stable <stable@vger.kernel.org> Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'crypto/compress.c')
0 files changed, 0 insertions, 0 deletions