1. 15 3月, 2016 8 次提交
  2. 17 2月, 2016 1 次提交
  3. 20 1月, 2016 11 次提交
  4. 07 1月, 2016 1 次提交
    • J
      Revert "svcrdma: Do not send XDR roundup bytes for a write chunk" · 3daa020f
      J. Bruce Fields 提交于
      This reverts commit 6f18dc89.
      
      Just as one example, it appears this code could do the wrong thing in
      the case of a two-byte NFS READ that crosses a page boundary.
      
      Chuck says: "In that case, nfsd would pass down an xdr_buf that has one
      byte in a page, one byte in another page, and a two-byte XDR pad. The
      logic introduced by this optimization would be fooled, and neither the
      second byte nor the XDR pad would be written to the client."
      
      Cc: Chuck Lever <chuck.lever@oracle.com>
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      3daa020f
  5. 23 12月, 2015 1 次提交
  6. 19 12月, 2015 12 次提交
  7. 24 11月, 2015 1 次提交
    • C
      svcrdma: Do not send XDR roundup bytes for a write chunk · 6f18dc89
      Chuck Lever 提交于
      Minor optimization: when dealing with write chunk XDR roundup, do
      not post a Write WR for the zero bytes in the pad. Simply update
      the write segment in the RPC-over-RDMA header to reflect the extra
      pad bytes.
      
      The Reply chunk is also a write chunk, but the server does not use
      send_write_chunks() to send the Reply chunk. That's OK in this case:
      the server Upper Layer typically marshals the Reply chunk contents
      in a single contiguous buffer, without a separate tail for the XDR
      pad.
      
      The comments and the variable naming refer to "chunks" but what is
      really meant is "segments." The existing code sends only one
      xdr_write_chunk per RPC reply.
      
      The fix assumes this as well. When the XDR pad in the first write
      chunk is reached, the assumption is the Write list is complete and
      send_write_chunks() returns.
      
      That will remain a valid assumption until the server Upper Layer can
      support multiple bulk payload results per RPC.
      Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      6f18dc89
  8. 03 11月, 2015 5 次提交