]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: comment on races related with timeout handler
authorMing Lei <tom.leiming@gmail.com>
Mon, 27 Mar 2017 12:06:55 +0000 (20:06 +0800)
committerJens Axboe <axboe@fb.com>
Wed, 29 Mar 2017 14:03:42 +0000 (08:03 -0600)
commitd080daa2070d5142612cddc93681f0a2c92bf7d2
tree11aa011fd37301c78c492322a2fbc5d1afbd75b0
parentb659de65a0af5918b435a0cc8f93cf8f22b6d42b
blk-mq: comment on races related with timeout handler

This patch adds comment on two races related with
timeout handler:

- requeue from queue busy vs. timeout
- rq free & reallocation vs. timeout

Both the races themselves and current solution aren't
explicit enough, so add comments on them.

Cc: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c