Jens Axboe 3c782d67c1 blk-mq: fix potential race in queue restart and driver tag allocation
Once we mark the queue as needing a restart, re-check if we can
get a driver tag. This fixes a theoretical issue where the needed
IO completes _after_ blk_mq_get_driver_tag() fails, but before we
manage to set the restart bit.

Signed-off-by: Jens Axboe <axboe@fb.com>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Tested-by: Hannes Reinecke <hare@suse.com>
2017-01-27 08:20:31 -07:00
..
2016-10-28 08:45:17 -06:00
2017-01-27 08:17:44 -07:00
2017-01-17 10:03:42 -07:00
2016-12-14 10:49:33 -08:00
2016-11-10 13:53:40 -07:00
2017-01-27 08:17:44 -07:00