]> git.karo-electronics.de Git - karo-tx-linux.git/commit
CIFS: fix saving of resume key before CIFSFindNext
authorJeff Layton <sfrench@us.ibm.com>
Thu, 23 Oct 2008 18:05:02 +0000 (18:05 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 25 Oct 2008 21:32:40 +0000 (14:32 -0700)
commit0f3da51e7046e2eb28992ba65c22d058f571356c
treed8da0019467de1babfa11b8199b832fe0b438135
parent5880100d91db1337c6604bf704c08c3c3dd4bf13
CIFS: fix saving of resume key before CIFSFindNext

commit a364bc0b37f14ffd66c1f982af42990a9d77fa43 upstream

We recently fixed the cifs readdir code so that it saves the resume key
before calling CIFSFindNext. Unfortunately, this assumes that we have
just done a CIFSFindFirst (or FindNext) and have resume info to save.
This isn't necessarily the case. Fix the code to save resume info if we
had to reinitiate the search, and after a FindNext.

This fixes connectathon basic test6 against NetApp filers.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/cifs/readdir.c