commit | bbfc3c5d6c7882dc65c1230e781644e35c29839f | [log] [tgz] |
---|---|---|
author | Tahsin Erdogan <tahsin@google.com> | Tue Jan 31 22:36:50 2017 -0800 |
committer | Jens Axboe <axboe@fb.com> | Wed Feb 01 15:31:22 2017 -0700 |
tree | d7ccecb7ef61bac4a6d5f93c703ad2df65c77a2a | |
parent | 5fad1b64aed8bd63ca7da2ba92107ba9ecd9a2c8 [diff] |
block: queue lock must be acquired when iterating over rls blk_set_queue_dying() does not acquire queue lock before it calls blk_queue_for_each_rl(). This allows a racing blkg_destroy() to remove blkg->q_node from the linked list and have blk_queue_for_each_rl() loop infitely over the removed blkg->q_node list node. Signed-off-by: Tahsin Erdogan <tahsin@google.com> Signed-off-by: Jens Axboe <axboe@fb.com>