summaryrefslogtreecommitdiffstats
path: root/block/blk-mq.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2014-10-30 20:43:38 +0100
committerJens Axboe <axboe@fb.com>2014-10-31 15:30:43 +0100
commitece9c72accdc45c3a9484dacb1125ce572647288 (patch)
tree9951eb6b877628b60562f4cc5ee80099f501d736 /block/blk-mq.c
parentMerge tag 'fbdev-fixes-3.18' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff)
downloadlinux-ece9c72accdc45c3a9484dacb1125ce572647288.tar.xz
linux-ece9c72accdc45c3a9484dacb1125ce572647288.zip
block: Fix computation of merged request priority
Priority of a merged request is computed by ioprio_best(). If one of the requests has undefined priority (IOPRIO_CLASS_NONE) and another request has priority from IOPRIO_CLASS_BE, the function will return the undefined priority which is wrong. Fix the function to properly return priority of a request with the defined priority. Fixes: d58cdfb89ce0c6bd5f81ae931a984ef298dbda20 CC: stable@vger.kernel.org Signed-off-by: Jan Kara <jack@suse.cz> Reviewed-by: Jeff Moyer <jmoyer@redhat.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq.c')
0 files changed, 0 insertions, 0 deletions