All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/14] cifs: clean up management of open filehandles
@ 2010-10-04 17:52 Jeff Layton
       [not found] ` <1286214781-626-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 19+ messages in thread
From: Jeff Layton @ 2010-10-04 17:52 UTC (permalink / raw)
  To: linux-cifs-u79uwXL29TY76Z2rM5mHXA

This patchset fixes a number of problems with the existing CIFS code. It
eliminates the backreference to the filp from cifsFileInfo, allowing a
cifsFileInfo to outlive the filp that it was generated against.

With that change, most of the closing of a filehandle on the server is
moved to cifsFileInfo_put. cifs_close is then changed to just put the
filehandle instead of trying to wait around for existing users to
finish with it.

With this change, there is some further cleanup that can be done as
well. For instance, there's no real need to continually search for new
filehandles in cifs_writepages now that we hold a reference to one. I'll
hold back on that until I know how this set has been received.

This set is an ordered set and should not be committed out of order. It
should be bisectable. I've tested the resulting set and it seems to work
fine.

Jeff Layton (14):
  cifs: keep dentry reference in cifsFileInfo instead of inode
    reference
  cifs: don't use vfsmount to pin superblock for oplock breaks
  cifs: eliminate cifs_posix_open_inode_helper
  cifs: eliminate oflags option from cifs_new_fileinfo
  cifs: eliminate the inode argument from cifs_new_fileinfo
  cifs: clean up cifs_reopen_file
  cifs: cifs_write argument change and cleanup
  cifs: eliminate pfile pointer from cifsFileInfo
  cifs: move cifs_new_fileinfo to file.c
  cifs: convert GlobalSMBSeslock from a rwlock to regular spinlock
  cifs: move cifsFileInfo_put to file.c
  cifs: move close processing from cifs_close to cifsFileInfo_put
  cifs: wait for writeback to complete in cifs_flush
  cifs: eliminate cifsInodeInfo->write_behind_rc

 fs/cifs/cifs_fs_sb.h |    1 +
 fs/cifs/cifsfs.c     |   21 ++-
 fs/cifs/cifsfs.h     |    6 +-
 fs/cifs/cifsglob.h   |   19 +--
 fs/cifs/cifsproto.h  |    6 +-
 fs/cifs/cifssmb.c    |    4 +-
 fs/cifs/dir.c        |   60 +-----
 fs/cifs/file.c       |  574 +++++++++++++++++++-------------------------------
 fs/cifs/inode.c      |   15 +-
 fs/cifs/misc.c       |   18 +--
 fs/cifs/readdir.c    |    6 +-
 11 files changed, 260 insertions(+), 470 deletions(-)

-- 
1.7.2.3

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2010-10-05 10:58 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-04 17:52 [PATCH 00/14] cifs: clean up management of open filehandles Jeff Layton
     [not found] ` <1286214781-626-1-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-10-04 17:52   ` [PATCH 01/14] cifs: keep dentry reference in cifsFileInfo instead of inode reference Jeff Layton
2010-10-04 17:52   ` [PATCH 02/14] cifs: don't use vfsmount to pin superblock for oplock breaks Jeff Layton
2010-10-04 17:52   ` [PATCH 03/14] cifs: eliminate cifs_posix_open_inode_helper Jeff Layton
2010-10-04 17:52   ` [PATCH 04/14] cifs: eliminate oflags option from cifs_new_fileinfo Jeff Layton
2010-10-04 17:52   ` [PATCH 05/14] cifs: eliminate the inode argument " Jeff Layton
2010-10-04 17:52   ` [PATCH 06/14] cifs: clean up cifs_reopen_file Jeff Layton
2010-10-04 17:52   ` [PATCH 07/14] cifs: cifs_write argument change and cleanup Jeff Layton
2010-10-04 17:52   ` [PATCH 08/14] cifs: eliminate pfile pointer from cifsFileInfo Jeff Layton
2010-10-04 17:52   ` [PATCH 09/14] cifs: move cifs_new_fileinfo to file.c Jeff Layton
2010-10-04 17:52   ` [PATCH 10/14] cifs: convert GlobalSMBSeslock from a rwlock to regular spinlock Jeff Layton
     [not found]     ` <1286214781-626-11-git-send-email-jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-10-05 10:30       ` Suresh Jayaraman
     [not found]         ` <4CAAFE45.6070803-l3A5Bk7waGM@public.gmane.org>
2010-10-05 10:58           ` Jeff Layton
2010-10-04 17:52   ` [PATCH 11/14] cifs: move cifsFileInfo_put to file.c Jeff Layton
2010-10-04 17:52   ` [PATCH 12/14] cifs: move close processing from cifs_close to cifsFileInfo_put Jeff Layton
2010-10-04 17:53   ` [PATCH 13/14] cifs: wait for writeback to complete in cifs_flush Jeff Layton
2010-10-04 17:53   ` [PATCH 14/14] cifs: eliminate cifsInodeInfo->write_behind_rc Jeff Layton
2010-10-04 20:31   ` [PATCH 00/14] cifs: clean up management of open filehandles Dave Kleikamp
2010-10-05 10:30   ` Suresh Jayaraman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.