diff options
Diffstat (limited to 'block/ll_rw_blk.c')
-rw-r--r-- | block/ll_rw_blk.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c index ddd9253f9d55..dcbd6ff1fa33 100644 --- a/block/ll_rw_blk.c +++ b/block/ll_rw_blk.c | |||
@@ -2734,6 +2734,18 @@ long blk_congestion_wait(int rw, long timeout) | |||
2734 | 2734 | ||
2735 | EXPORT_SYMBOL(blk_congestion_wait); | 2735 | EXPORT_SYMBOL(blk_congestion_wait); |
2736 | 2736 | ||
2737 | /** | ||
2738 | * blk_congestion_end - wake up sleepers on a congestion queue | ||
2739 | * @rw: READ or WRITE | ||
2740 | */ | ||
2741 | void blk_congestion_end(int rw) | ||
2742 | { | ||
2743 | wait_queue_head_t *wqh = &congestion_wqh[rw]; | ||
2744 | |||
2745 | if (waitqueue_active(wqh)) | ||
2746 | wake_up(wqh); | ||
2747 | } | ||
2748 | |||
2737 | /* | 2749 | /* |
2738 | * Has to be called with the request spinlock acquired | 2750 | * Has to be called with the request spinlock acquired |
2739 | */ | 2751 | */ |