1. 23 Sep, 2008 2 commits
    • Jeff Layton's avatar
      cifs: move rename and delete-on-close logic into helper function · a12a1ac7
      Jeff Layton authored
      cifs: move rename and delete-on-close logic into helper function
      
      When a file is still open on the server, we attempt to set the
      DELETE_ON_CLOSE bit and rename it to a new filename. When the
      last opener closes the file, the server should delete it.
      
      This patch moves this mechanism into a helper function and has
      the two places in cifs_unlink that do this procedure call it. It
      also fixes the open flags to be correct.
      Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
      Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
      a12a1ac7
    • Jeff Layton's avatar
      cifs: have find_writeable_file prefer filehandles opened by same task · 2846d386
      Jeff Layton authored
      When the CIFS client goes to write out pages, it needs to pick a
      filehandle to write to. find_writeable_file however just picks the
      first filehandle that it finds. This can cause problems when a lock
      is issued against a particular filehandle and we pick a different
      filehandle to write to.
      
      This patch tries to avert this situation by having find_writable_file
      prefer filehandles that have a pid that matches the current task.
      This seems to fix lock test 11 from the connectathon test suite when
      run against a windows server.
      Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
      Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
      2846d386
  2. 22 Sep, 2008 1 commit
  3. 16 Sep, 2008 2 commits
  4. 13 Sep, 2008 32 commits
  5. 12 Sep, 2008 3 commits