1. 25 7月, 2022 26 次提交
  2. 21 7月, 2022 2 次提交
  3. 09 7月, 2022 1 次提交
    • J
      io_uring: check that we have a file table when allocating update slots · d785a773
      Jens Axboe 提交于
      If IORING_FILE_INDEX_ALLOC is set asking for an allocated slot, the
      helper doesn't check if we actually have a file table or not. The non
      alloc path does do that correctly, and returns -ENXIO if we haven't set
      one up.
      
      Do the same for the allocated path, avoiding a NULL pointer dereference
      when trying to find a free bit.
      
      Fixes: a7c41b46 ("io_uring: let IORING_OP_FILES_UPDATE support choosing fixed file slots")
      Signed-off-by: NJens Axboe <axboe@kernel.dk>
      d785a773
  4. 08 7月, 2022 1 次提交
  5. 01 7月, 2022 1 次提交
  6. 30 6月, 2022 1 次提交
  7. 24 6月, 2022 1 次提交
    • J
      io_uring: use original request task for inflight tracking · 386e4fb6
      Jens Axboe 提交于
      In prior kernels, we did file assignment always at prep time. This meant
      that req->task == current. But after deferring that assignment and then
      pushing the inflight tracking back in, we've got the inflight tracking
      using current when it should in fact now be using req->task.
      
      Fixup that error introduced by adding the inflight tracking back after
      file assignments got modifed.
      
      Fixes: 9cae36a0 ("io_uring: reinstate the inflight tracking")
      Signed-off-by: NJens Axboe <axboe@kernel.dk>
      386e4fb6
  8. 22 6月, 2022 3 次提交
  9. 21 6月, 2022 2 次提交
  10. 20 6月, 2022 1 次提交
    • J
      io_uring: mark reissue requests with REQ_F_PARTIAL_IO · 1bacd264
      Jens Axboe 提交于
      If we mark for reissue, we assume that the buffer will remain stable.
      Hence if are using a provided buffer, we need to ensure that we stick
      with it for the duration of that request.
      
      This only affects block devices that use provided buffers, as those are
      the only ones that get marked with REQ_F_REISSUE.
      Signed-off-by: NJens Axboe <axboe@kernel.dk>
      1bacd264
  11. 17 6月, 2022 1 次提交