Fix open file tracking in vfs_cifs so that oplock breaks can propagate
authorAmin Azez <azez@ufomechanic.net>
Tue, 29 Jan 2008 16:10:48 +0000 (16:10 +0000)
committerStefan Metzmacher <metze@samba.org>
Tue, 12 Feb 2008 13:17:41 +0000 (14:17 +0100)
commit1a53aeff9a9e8fe83fde5a617463a5b363c45313
tree8b36266cb6b05f076647346de46fbfeb113227ca
parent28539f48e6ad37a6436e6f2c6733ee1fcbc6567f
Fix open file tracking in vfs_cifs so that oplock breaks can propagate

Oplock breaks were not propagating because the list of open files was not
being maintained.

This fixes that based on best-guess of how it should work.

It has been tested manually with windows XP client obtaining an oplock from a
windows 2003 server, which then broke the lock when smbclient read the same file.

Previously the smbclient read blocked until the oplock timed out
source/ntvfs/cifs/vfs_cifs.c