'\" t .\" Title: blk_set_runtime_active .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: Block Devices .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "BLK_SET_RUNTIME_ACTI" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "Block Devices" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" blk_set_runtime_active \- Force runtime status of the queue to be active .SH "SYNOPSIS" .HP \w'void\ blk_set_runtime_active('u .BI "void blk_set_runtime_active(struct\ request_queue\ *\ " "q" ");" .SH "ARGUMENTS" .PP \fIstruct request_queue * q\fR .RS 4 the queue of the device .RE .SH "DESCRIPTION" .PP 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 \(lqsuspended\(rq\&. This prevents processing requests from the queue\&. .PP This function can be used in driver\*(Aqs 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\&. .SH "COPYRIGHT" .br