Skip to content

cifs: clean up management of open filehandle (try #3)

Jeff Layton linux-cifs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15cifs: keep dentry reference in cifsFileInfo instead of inode referencefs/cifs/cifsglob.h fs/cifs/dir.c fs/cifs/file.c +1 more+6 -50 replies
2/15cifs: don't use vfsmount to pin superblock for oplock breaksfs/cifs/cifs_fs_sb.h fs/cifs/cifsfs.c fs/cifs/cifsfs.h +4 more+29 -180 replies
3/15cifs: eliminate cifs_posix_open_inode_helperfs/cifs/file.c+0 -670 replies
4/15cifs: eliminate oflags option from cifs_new_fileinfofs/cifs/cifsproto.h fs/cifs/dir.c fs/cifs/file.c+7 -166 replies
5/15cifs: eliminate the inode argument from cifs_new_fileinfofs/cifs/cifsproto.h fs/cifs/dir.c fs/cifs/file.c+18 -210 replies
6/15cifs: clean up cifs_reopen_filefs/cifs/cifsglob.h fs/cifs/dir.c fs/cifs/file.c+56 -740 replies
7/15cifs: cifs_write argument change and cleanupfs/cifs/file.c+17 -340 replies
8/15cifs: eliminate pfile pointer from cifsFileInfofs/cifs/cifsglob.h fs/cifs/dir.c fs/cifs/file.c+3 -100 replies
9/15cifs: move cifs_new_fileinfo to file.cfs/cifs/dir.c fs/cifs/file.c+43 -440 replies
10/15cifs: convert GlobalSMBSeslock from a rwlock to regular spinlockfs/cifs/cifsfs.c fs/cifs/cifsglob.h fs/cifs/cifssmb.c +3 more+38 -382 replies
11/15cifs: move cifsFileInfo_put to file.cfs/cifs/cifsglob.h fs/cifs/file.c+11 -90 replies
12/15cifs: move close processing from cifs_close to cifsFileInfo_putfs/cifs/cifsglob.h fs/cifs/file.c fs/cifs/misc.c+60 -1380 replies
13/15cifs: convert cifsFileInfo->count to non-atomic counterfs/cifs/cifsglob.h fs/cifs/file.c+11 -61 reply
14/15cifs: wait for writeback to complete in cifs_flushfs/cifs/file.c+7 -140 replies
15/15cifs: eliminate cifsInodeInfo->write_behind_rcfs/cifs/cifsfs.c fs/cifs/cifsglob.h fs/cifs/file.c +1 more+13 -380 replies

Reviews trailers per patch

14 of 15 patches have a Reviewed-by or Acked-by.

PatchSuresh JayaramanDave Kleikamp
1/15R-b A-b
2/15R-b A-b
3/15R-b A-b
4/15
5/15R-b A-b
6/15R-b A-b
7/15R-b A-b
8/15R-b A-b
9/15R-b A-b
10/15R-b
11/15R-b
12/15R-b
13/15R-b
14/15R-b
15/15R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/15] cifs: clean up management of open filehandle (try #3)

This is the third attempt at the patchset to clean up management of open filehandles in CIFS. The main changes from try #2 are:

1) the cifs_file_list_lock has been converted to a spinlock after much discussion about it on-list.

2) the list order for the inode->openFileList has been eliminated. After reviewing the code more thoroughly, I came to the conclusion that the list order was essentially meaningless anyway.

The rest of the set is essentially unchanged. I've left Suresh and Shaggy's Acked-by/Reviewed-by lines in place except on patches that have had substantial changes.

Jeff Layton (15):
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: convert cifsFileInfo->count to non-atomic counter
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   |   28 +--
 fs/cifs/cifsproto.h  |    6 +-
 fs/cifs/cifssmb.c    |    4 +-
 fs/cifs/dir.c        |   60 +-----
 fs/cifs/file.c       |  570 +++++++++++++++++++-------------------------------
 fs/cifs/inode.c      |   15 +-
 fs/cifs/misc.c       |   18 +--
 fs/cifs/readdir.c    |    6 +-
 11 files changed, 261 insertions(+), 474 deletions(-)
Signature · 1 line
1.7.2.3