diff options
author | Shirish Pargaonkar <shirishpargaonkar@gmail.com> | 2012-05-21 09:20:12 -0500 |
---|---|---|
committer | Pavel Shilovsky <pshilovsky@samba.org> | 2012-05-23 12:33:18 +0400 |
commit | 2c0c2a08bed7a3b791f88d09d16ace56acb3dd98 (patch) | |
tree | fe41007499ec9b8371562a4aae78d9a6f6d29c89 /Documentation | |
parent | ea4b574028f0c30d736ab6b13b518af8533a86c4 (diff) | |
download | linux-stable-2c0c2a08bed7a3b791f88d09d16ace56acb3dd98.tar.gz linux-stable-2c0c2a08bed7a3b791f88d09d16ace56acb3dd98.tar.bz2 linux-stable-2c0c2a08bed7a3b791f88d09d16ace56acb3dd98.zip |
cifs: fix oops while traversing open file list (try #4)
While traversing the linked list of open file handles, if the identfied
file handle is invalid, a reopen is attempted and if it fails, we
resume traversing where we stopped and cifs can oops while accessing
invalid next element, for list might have changed.
So mark the invalid file handle and attempt reopen if no
valid file handle is found in rest of the list.
If reopen fails, move the invalid file handle to the end of the list
and start traversing the list again from the begining.
Repeat this four times before giving up and returning an error if
file reopen keeps failing.
Cc: <stable@vger.kernel.org>
Signed-off-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions