]> git.baikalelectronics.ru Git - kernel.git/commit
bfq-iosched: fix NULL ioc check in bfq_get_rq_private
authorChristoph Hellwig <hch@lst.de>
Fri, 16 Jun 2017 16:15:24 +0000 (18:15 +0200)
committerJens Axboe <axboe@kernel.dk>
Sun, 18 Jun 2017 16:08:55 +0000 (10:08 -0600)
commit23a760d56159152794a2e9c8b9214e116903c9f6
tree39a0ef4899d6a9ea48a3a1637b1c86a6071f6dab
parent1b4c7f593e856f0a39f7a3fe126486a32d8757c6
bfq-iosched: fix NULL ioc check in bfq_get_rq_private

icq_to_bic is a container_of operation, so we need to check for NULL
before it.  Also move the check outside the spinlock while we're at
it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c