summaryrefslogtreecommitdiff
path: root/fs/io-wq.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-10-19 05:54:39 +0300
committerJens Axboe <axboe@kernel.dk>2021-10-19 14:48:15 +0300
commite0d78afeb8d190164a823d5ef5821b0b3802af33 (patch)
tree0492caa8741e7b6c66b7c6c8038f5d3154bc4027 /fs/io-wq.c
parent4f5022453acd0f7b28012e20b7d048470f129894 (diff)
downloadlinux-e0d78afeb8d190164a823d5ef5821b0b3802af33.tar.xz
block: fix too broad elevator check in blk_mq_free_request()
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: 2ff0682da6e0 ("block: store elevator state in request") Reported-by: Yi Zhang <yi.zhang@redhat.com> Reported-by: syzbot+eb8104072aeab6cc1195@syzkaller.appspotmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io-wq.c')
0 files changed, 0 insertions, 0 deletions