Skip to content
Snippets Groups Projects
  1. Sep 14, 2023
  2. Aug 11, 2023
  3. Jun 27, 2023
  4. Jun 21, 2023
  5. Jun 14, 2023
  6. Jun 07, 2023
  7. May 24, 2023
  8. May 17, 2023
  9. Mar 30, 2023
    • Jens Axboe's avatar
      iov_iter: add iter_iovec() helper · de4f5fed
      Jens Axboe authored
      
      This returns a pointer to the current iovec entry in the iterator. Only
      useful with ITER_IOVEC right now, but it prepares us to treat ITER_UBUF
      and ITER_IOVEC identically for the first segment.
      
      Rename struct iov_iter->iov to iov_iter->__iov to find any potentially
      troublesome spots, and also to prevent anyone from adding new code that
      accesses iter->iov directly.
      
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      de4f5fed
  10. Mar 21, 2023
  11. Feb 24, 2023
  12. Jan 29, 2023
  13. Jan 23, 2023
    • Jens Axboe's avatar
      io_uring/net: cache provided buffer group value for multishot receives · b00c51ef
      Jens Axboe authored
      
      If we're using ring provided buffers with multishot receive, and we end
      up doing an io-wq based issue at some points that also needs to select
      a buffer, we'll lose the initially assigned buffer group as
      io_ring_buffer_select() correctly clears the buffer group list as the
      issue isn't serialized by the ctx uring_lock. This is fine for normal
      receives as the request puts the buffer and finishes, but for multishot,
      we will re-arm and do further receives. On the next trigger for this
      multishot receive, the receive will try and pick from a buffer group
      whose value is the same as the buffer ID of the las receive. That is
      obviously incorrect, and will result in a premature -ENOUFS error for
      the receive even if we had available buffers in the correct group.
      
      Cache the buffer group value at prep time, so we can restore it for
      future receives. This only needs doing for the above mentioned case, but
      just do it by default to keep it easier to read.
      
      Cc: stable@vger.kernel.org
      Fixes: b3fdea6e ("io_uring: multishot recv")
      Fixes: 9bb66906 ("io_uring: support multishot in recvmsg")
      Cc: Dylan Yudaken <dylany@meta.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      b00c51ef
  14. Jan 09, 2023
  15. Dec 19, 2022
  16. Dec 07, 2022
  17. Nov 25, 2022
  18. Nov 21, 2022
  19. Nov 17, 2022
  20. Oct 22, 2022
  21. Oct 12, 2022
  22. Sep 29, 2022
Loading