diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-08-23 02:06:24 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-09-23 05:24:54 +0200 |
commit | 275a082fe9308e710324e26ccb5363c53d8fd45f (patch) | |
tree | e97df6e45f98ea2827f71dc749f8cd47f3f353cc /block | |
parent | NFS: Use cached page as buffer for NFS symlink requests (diff) | |
download | linux-275a082fe9308e710324e26ccb5363c53d8fd45f.tar.xz linux-275a082fe9308e710324e26ccb5363c53d8fd45f.zip |
Add a real API for dealing with blk_congestion_wait()
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'block')
-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) EXPORT_SYMBOL(blk_congestion_wait); +/** + * blk_congestion_end - wake up sleepers on a congestion queue + * @rw: READ or WRITE + */ +void blk_congestion_end(int rw) +{ + wait_queue_head_t *wqh = &congestion_wqh[rw]; + + if (waitqueue_active(wqh)) + wake_up(wqh); +} + /* * Has to be called with the request spinlock acquired */ |