blk-mq: Fix NULL pointer updating nr_requests
authorKeith Busch <keith.busch@intel.com>
Thu, 18 Feb 2016 21:56:35 +0000 (14:56 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 3 Mar 2016 21:46:04 +0000 (14:46 -0700)
commite9137d4b93078b6a9965acfb18a2a2ad91cf8405
tree0633fc205e9f520315c268a3ca165866cc9421fc
parent66841672161efb9e3be4a1dbd9755020bb1d86b7
blk-mq: Fix NULL pointer updating nr_requests

A h/w context's tags are freed if it was not assigned a CPU. Check if
the context has tags before updating the depth.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c