blk_set_runtime_active (9) - Linux Manuals

blk_set_runtime_active: Force runtime status of the queue to be active

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

q

the queue of the device

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