1BLK_SYNC_QUEUE(9)                Block Devices               BLK_SYNC_QUEUE(9)
2
3
4

NAME

6       blk_sync_queue - cancel any pending callbacks on a queue
7

SYNOPSIS

9       void blk_sync_queue(struct request_queue * q);
10

ARGUMENTS

12       q
13           the queue
14

DESCRIPTION

16       The block layer may perform asynchronous callback activity on a queue,
17       such as calling the unplug function after a timeout. A block device may
18       call blk_sync_queue to ensure that any such activity is cancelled, thus
19       allowing it to release resources that the callbacks might use. The
20       caller must already have made sure that its ->make_request_fn will not
21       re-add plugging prior to calling this function.
22
23       This function does not cancel any asynchronous activity arising out of
24       elevator or throttling code. That would require elevaotor_exit and
25       blk_throtl_exit to be called with queue lock initialized.
26
28Kernel Hackers Manual 2.6.         June 2019                 BLK_SYNC_QUEUE(9)
Impressum