cifs: clean up management of open filehandles
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest14 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | cifs: keep dentry reference in cifsFileInfo instead of inode referencefs/ fs/ fs/ +1 more | +6 | 0 replies | |
| 2/14 | cifs: don't use vfsmount to pin superblock for oplock breaksfs/ fs/ fs/ +4 more | +29 | 0 replies | |
| 3/14 | cifs: eliminate cifs_posix_open_inode_helperfs/ | +0 | 0 replies | |
| 4/14 | cifs: eliminate oflags option from cifs_new_fileinfofs/ fs/ fs/ | +7 | 0 replies | |
| 5/14 | cifs: eliminate the inode argument from cifs_new_fileinfofs/ fs/ fs/ | +24 | 0 replies | |
| 6/14 | cifs: clean up cifs_reopen_filefs/ fs/ fs/ | +57 | 0 replies | |
| 7/14 | cifs: cifs_write argument change and cleanupfs/ | +17 | 0 replies | |
| 8/14 | cifs: eliminate pfile pointer from cifsFileInfofs/ fs/ fs/ | +3 | 0 replies | |
| 9/14 | cifs: move cifs_new_fileinfo to file.cfs/ fs/ | +48 | 0 replies | |
| 10/14 | cifs: convert GlobalSMBSeslock from a rwlock to regular spinlockfs/ fs/ fs/ +3 more | +38 | 2 replies | |
| 11/14 | cifs: move cifsFileInfo_put to file.cfs/ fs/ | +11 | 0 replies | |
| 12/14 | cifs: move close processing from cifs_close to cifsFileInfo_putfs/ fs/ fs/ | +62 | 0 replies | |
| 13/14 | cifs: wait for writeback to complete in cifs_flushfs/ | +1 | 0 replies | |
| 14/14 | cifs: eliminate cifsInodeInfo->write_behind_rcfs/ fs/ fs/ +1 more | +12 | 0 replies |
Reviews trailers per patch
None of the 14 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Suresh Jayaraman |
|---|---|
| Series | R-b |
| 1/14 | |
| 2/14 | |
| 3/14 | |
| 4/14 | |
| 5/14 | |
| 6/14 | |
| 7/14 | |
| 8/14 | |
| 9/14 | |
| 10/14 | |
| 11/14 | |
| 12/14 | |
| 13/14 | |
| 14/14 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/14] cifs: clean up management of open filehandles
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(-)
Signature · 1 line
1.7.2.3