diff options
author | James Bottomley <jejb@sparkweed.localdomain> | 2006-09-23 22:03:52 -0400 |
---|---|---|
committer | James Bottomley <jejb@sparkweed.localdomain> | 2006-09-23 22:03:52 -0400 |
commit | 1aedf2ccc60fade26c46fae12e28664d0da3f199 (patch) | |
tree | d91083e3079f1ddb942a382ac2b5a7525570ad59 /block/ll_rw_blk.c | |
parent | dfdc58ba354adb80d67c99f7be84f95a8e02e466 (diff) | |
parent | 1ab9dd0902df4f4ff56fbf672220549090ab28ba (diff) |
Merge mulgrave-w:git/linux-2.6
Conflicts:
include/linux/blkdev.h
Trivial merge to incorporate tag prototypes.
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 556a3d354eab..9c3a06bcb7ba 100644 --- a/block/ll_rw_blk.c +++ b/block/ll_rw_blk.c | |||
@@ -2801,6 +2801,18 @@ long blk_congestion_wait(int rw, long timeout) | |||
2801 | 2801 | ||
2802 | EXPORT_SYMBOL(blk_congestion_wait); | 2802 | EXPORT_SYMBOL(blk_congestion_wait); |
2803 | 2803 | ||
2804 | /** | ||
2805 | * blk_congestion_end - wake up sleepers on a congestion queue | ||
2806 | * @rw: READ or WRITE | ||
2807 | */ | ||
2808 | void blk_congestion_end(int rw) | ||
2809 | { | ||
2810 | wait_queue_head_t *wqh = &congestion_wqh[rw]; | ||
2811 | |||
2812 | if (waitqueue_active(wqh)) | ||
2813 | wake_up(wqh); | ||
2814 | } | ||
2815 | |||
2804 | /* | 2816 | /* |
2805 | * Has to be called with the request spinlock acquired | 2817 | * Has to be called with the request spinlock acquired |
2806 | */ | 2818 | */ |