FYI ... progress ... Leases and more general handle caching and compounding are getting a little closer ... I put a few more small patches from Ronnie into for-next ~/cifs-2.6$ git log -4 commit bcfd761d3ddda672e8bd541c385426735ea7b847 (HEAD -> for-next, origin/for-next) Author: Ronnie Sahlberg <lsahlber@xxxxxxxxxx> Date: Thu Apr 26 08:50:49 2018 -0600 cifs: add a new SMB2_close_flags function And make SMB2_close just a wrapper for SMB2_close_flags. We need this as we will start to send SMB2_CLOSE pdus using special flags. Signed-off-by: Ronnie Sahlberg <lsahlber@xxxxxxxxxx> Reviewed-by: Pavel Shilovsky <pshilov@xxxxxxxxxxxxx> Signed-off-by: Steve French <smfrench@xxxxxxxxx> commit 72a756ddfa5ea3595b0819fe78047907835afea1 Author: Ronnie Sahlberg <lsahlber@xxxxxxxxxx> Date: Thu Apr 26 08:10:18 2018 -0600 cifs: store the leaseKey in the fid on SMB2_open In SMB2_open(), if we got a lease we need to store this in the fid structure or else we will never be able to map a lease break back to which file/fid it applies to. Signed-off-by: Ronnie Sahlberg <lsahlber@xxxxxxxxxx> Reviewed-by: Pavel Shilovsky <pshilov@xxxxxxxxxxxxx> Signed-off-by: Steve French <smfrench@xxxxxxxxx> commit 94fb5e2a30ddef974f3d52a75908a9ee0c6aaf53 Author: Ronnie Sahlberg <lsahlber@xxxxxxxxxx> Date: Sun Apr 22 15:30:12 2018 -0600 cifs: update calc_size to take a server argument and change the smb2 version to take heder_preamble_size into account instead of hardcoding it as 4 bytes. Signed-off-by: Ronnie Sahlberg <lsahlber@xxxxxxxxxx> Signed-off-by: Steve French <smfrench@xxxxxxxxx> commit 00305145145f62b9eea2508813c9c7a4e078e093 Author: Ronnie Sahlberg <lsahlber@xxxxxxxxxx> Date: Sun Apr 22 14:45:53 2018 -0600 cifs: add server argument to the dump_detail method We need a struct TCP_Server_Info *server to this method as it calls calc_size. The calc_size method will soon be changed to also take a server argument. Signed-off-by: Ronnie Sahlberg <lsahlber@xxxxxxxxxx> Signed-off-by: Steve French <smfrench@xxxxxxxxx> -- Thanks, Steve -- 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