diff options
author | Alan Stern <[email protected]> | 2014-09-09 11:50:58 -0400 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2014-09-09 10:44:24 -0600 |
commit | df35c7c912fe668797681842b3b74c61b0664050 (patch) | |
tree | 1026ae593bef21aabb5d169e170086797d2e1520 /tools/perf/scripts/python | |
parent | 2da78092dda13f1efd26edbbf99a567776913750 (diff) |
Block: fix unbalanced bypass-disable in blk_register_queue
When a queue is registered, the block layer turns off the bypass
setting (because bypass is enabled when the queue is created). This
doesn't work well for queues that are unregistered and then registered
again; we get a WARNING because of the unbalanced calls to
blk_queue_bypass_end().
This patch fixes the problem by making blk_register_queue() call
blk_queue_bypass_end() only the first time the queue is registered.
Signed-off-by: Alan Stern <[email protected]>
Acked-by: Tejun Heo <[email protected]>
CC: James Bottomley <[email protected]>
CC: Jens Axboe <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions