This patchset is going to simplify brlocking code and add the caching support for exclusive oplock cases. I splitted it into several independent parts - so, each can be applied separately once it's reviewed. This version of the patchset includes some code style improvements in patch #3. Any comments and testing are welcome! Pavel Shilovsky (6): CIFS: Simplify byte range locking code CIFS: Move byte range lock list from fd to inode CIFS: Implement caching mechanism for mandatory brlocks CIFS: Implement caching mechanism for posix brlocks CIFS: Send as many mandatory unlock ranges at once as possible CIFS: Make cifs_push_locks send as many locks at once as possible fs/cifs/cifsfs.c | 3 +- fs/cifs/cifsglob.h | 10 +- fs/cifs/cifsproto.h | 9 +- fs/cifs/cifssmb.c | 52 +++- fs/cifs/file.c | 767 ++++++++++++++++++++++++++++++++++++++++----------- 5 files changed, 661 insertions(+), 180 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html