summaryrefslogtreecommitdiffstats
path: root/block/genhd.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2017-08-04 13:37:03 -0600
committerJens Axboe <axboe@kernel.dk>2017-08-09 13:09:08 -0600
commit7f5562d5ecc44c757599b201df928ba52fa05047 (patch)
tree039f673c2bcbb3353756d6907e7c0d9decb556d7 /block/genhd.c
parent62d20aa6a01e13c03f01bc92ba845153cb603299 (diff)
downloadlinux-0-day-7f5562d5ecc44c757599b201df928ba52fa05047.tar.gz
linux-0-day-7f5562d5ecc44c757599b201df928ba52fa05047.tar.xz
blk-mq-tag: check for NULL rq when iterating tags
Since we introduced blk-mq-sched, the tags->rqs[] array has been dynamically assigned. So we need to check for NULL when iterating, since there's a window of time where the bit is set, but we haven't dynamically assigned the tags->rqs[] array position yet. This is perfectly safe, since the memory backing of the request is never going away while the device is alive. Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com> Reviewed-by: Omar Sandoval <osandov@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/genhd.c')
0 files changed, 0 insertions, 0 deletions