1. 19 Oct, 2021 2 commits
    • Jens Axboe's avatar
      io_uring: dump sqe contents if issue fails · a87acfde
      Jens Axboe authored
      I recently had to look at a production problem where a request ended
      up getting the dreaded -EINVAL error on submit. The most used and
      hence useless of error codes, as it just tells you that something
      was wrong with your request, but not more than that.
      
      Let's dump the full sqe contents if we run into an issue failure,
      that'll allow easier diagnosing of a wide variety of issues.
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      a87acfde
    • Jens Axboe's avatar
      block: fix too broad elevator check in blk_mq_free_request() · e0d78afe
      Jens Axboe authored
      We added RQF_ELV to tell whether there's an IO scheduler attached, and
      RQF_ELVPRIV tells us whether there's an IO scheduler with private data
      attached. Don't check RQF_ELV in blk_mq_free_request(), what we care
      about here is just if we have scheduler private data attached.
      
      This fixes a boot crash
      
      Fixes: 2ff0682d ("block: store elevator state in request")
      Reported-by: default avatarYi Zhang <yi.zhang@redhat.com>
      Reported-by: syzbot+eb8104072aeab6cc1195@syzkaller.appspotmail.com
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      e0d78afe
  2. 18 Oct, 2021 38 commits