This patchset is going to simplify brlocking code and add caching support for exclusive oplock cases. I splitted it into several independent parts - so, each can be applied separately once it's reviewed. 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 | 766 ++++++++++++++++++++++++++++++++++++++++----------- 5 files changed, 660 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