From: Trond Myklebust Date: Wed, 15 Feb 2012 01:33:19 +0000 (-0500) Subject: NFSv4.1: Fix a NFSv4.1 session initialisation regression X-Git-Tag: v3.3-rc5~24^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f86f36a6ae625eda87a13e1ea102a908e08f491b;p=pandora-kernel.git NFSv4.1: Fix a NFSv4.1 session initialisation regression Commit aacd553 (NFSv4.1: cleanup init and reset of session slot tables) introduces a regression in the session initialisation code. New tables now find their sequence ids initialised to 0, rather than the mandated value of 1 (see RFC5661). Fix the problem by merging nfs4_reset_slot_table() and nfs4_init_slot_table(). Since the tbl->max_slots is initialised to 0, the test in nfs4_reset_slot_table for max_reqs != tbl->max_slots will automatically pass for an empty table. Reported-by: Vitaliy Gusev Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed