table of contents
BLK_SET_RUNTIME_ACTI(9) | Block Devices | BLK_SET_RUNTIME_ACTI(9) |
NAME¶
blk_set_runtime_active - Force runtime status of the queue to be active
SYNOPSIS¶
void blk_set_runtime_active(struct request_queue * q);
ARGUMENTS¶
struct request_queue * q
DESCRIPTION¶
If the device is left runtime suspended during system suspend the resume hook typically resumes the device and corrects runtime status accordingly. However, that does not affect the queue runtime PM status which is still “suspended”. This prevents processing requests from the queue.
This function can be used in driver's resume hook to correct queue runtime PM status and re-enable peeking requests from the queue. It should be called before first request is added to the queue.
COPYRIGHT¶
June 2017 | Kernel Hackers Manual 4.11 |