diff options
| author | Bart Van Assche <[email protected]> | 2018-09-26 14:01:08 -0700 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2018-09-26 15:11:29 -0600 |
| commit | bdd6316094e0370cd183bc979dd7e322b68dc993 (patch) | |
| tree | fb7cfd6f386ca0d86bd0dc3f3ebe8341defa65f9 /include | |
| parent | 18c9a6bbe0645a05172a900740b9d2d379d54320 (diff) | |
block: Allow unfreezing of a queue while requests are in progress
A later patch will call blk_freeze_queue_start() followed by
blk_mq_unfreeze_queue() without waiting for q_usage_counter to drop
to zero. Make sure that this doesn't cause a kernel warning to appear
by switching from percpu_ref_reinit() to percpu_ref_resurrect(). The
former namely requires that the refcount it operates on is zero.
Signed-off-by: Bart Van Assche <[email protected]>
Reviewed-by: Ming Lei <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Cc: Jianchao Wang <[email protected]>
Cc: Hannes Reinecke <[email protected]>
Cc: Johannes Thumshirn <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions