Currently we check for this: if smb2req->in.vector_count < (2*SMBD_SMB2_NUM_IOV_PER_REQ) /* no sendfile */ Which is wrong, it should be if smb2req->in.vector_count >= (2*SMBD_SMB2_NUM_IOV_PER_REQ) /* no sendfile */ Which means we don't use sendfile for compound requests.
Created attachment 8125 [details] Patch from master (applies cleanly to v4-0-test) This patch is from master. It was done my metze, tested by the reporter (Sebastien LAVEZE) and reviewed by me.
Comment on attachment 8125 [details] Patch from master (applies cleanly to v4-0-test) looks good
Karolin, please pick this
Pushed to autobuild-v4-0-test.
Pushed to v4-0-test. Closing out bug report. Thanks!