An error occurred fetching the project authors.
  1. 26 Sep, 2022 2 commits
  2. 23 Jul, 2022 4 commits
  3. 30 Jun, 2022 1 commit
  4. 08 Jun, 2022 5 commits
  5. 02 Oct, 2021 1 commit
    • Chuck Lever's avatar
      SUNRPC: xdr_stream_subsegment() must handle non-zero page_bases · f49b68dd
      Chuck Lever authored
      xdr_stream_subsegment() was introduced in commit c1346a12
      ("NFSD: Replace the internals of the READ_BUF() macro").
      
      There are two call sites for xdr_stream_subsegment(). One is
      nfsd4_decode_write(), and the other is nfsd4_decode_setxattr().
      Currently neither of these call sites calls this API when
      xdr_buf::page_base is a non-zero value.
      
      However, I'm about to add a case where page_base will sometimes not
      be zero when nfsd4_decode_write() invokes this API. Replace the
      logic in xdr_stream_subsegment() that advances to the next data item
      in the xdr_stream with something more generic in order to handle
      this new use case.
      Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
      Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
      f49b68dd
  6. 13 Jun, 2021 1 commit
  7. 14 Dec, 2020 8 commits
  8. 02 Dec, 2020 7 commits
  9. 30 Nov, 2020 3 commits
  10. 07 Oct, 2020 6 commits
  11. 25 Sep, 2020 2 commits
    • Anna Schumaker's avatar
      SUNRPC/NFSD: Implement xdr_reserve_space_vec() · 403217f3
      Anna Schumaker authored
      Reserving space for a large READ payload requires special handling when
      reserving space in the xdr buffer pages. One problem we can have is use
      of the scratch buffer, which is used to get a pointer to a contiguous
      region of data up to PAGE_SIZE. When using the scratch buffer, calls to
      xdr_commit_encode() shift the data to it's proper alignment in the xdr
      buffer. If we've reserved several pages in a vector, then this could
      potentially invalidate earlier pointers and result in incorrect READ
      data being sent to the client.
      
      I get around this by looking at the amount of space left in the current
      page, and never reserve more than that for each entry in the read
      vector. This lets us place data directly where it needs to go in the
      buffer pages.
      Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
      Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
      403217f3
    • Randy Dunlap's avatar
      net: sunrpc: delete repeated words · 1cc5213b
      Randy Dunlap authored
      Drop duplicate words in net/sunrpc/.
      Also fix "Anyone" to be "Any one".
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Cc: "J. Bruce Fields" <bfields@fieldses.org>
      Cc: Chuck Lever <chuck.lever@oracle.com>
      Cc: linux-nfs@vger.kernel.org
      Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
      1cc5213b