diff options
-rw-r--r-- | net/rds/message.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rds/message.c b/net/rds/message.c index 9122b5392111..4cb1ed704153 100644 --- a/net/rds/message.c +++ b/net/rds/message.c | |||
@@ -399,14 +399,14 @@ int rds_message_inc_copy_to_user(struct rds_incoming *inc, | |||
399 | */ | 399 | */ |
400 | void rds_message_wait(struct rds_message *rm) | 400 | void rds_message_wait(struct rds_message *rm) |
401 | { | 401 | { |
402 | wait_event(rds_message_flush_waitq, | 402 | wait_event_interruptible(rds_message_flush_waitq, |
403 | !test_bit(RDS_MSG_MAPPED, &rm->m_flags)); | 403 | !test_bit(RDS_MSG_MAPPED, &rm->m_flags)); |
404 | } | 404 | } |
405 | 405 | ||
406 | void rds_message_unmapped(struct rds_message *rm) | 406 | void rds_message_unmapped(struct rds_message *rm) |
407 | { | 407 | { |
408 | clear_bit(RDS_MSG_MAPPED, &rm->m_flags); | 408 | clear_bit(RDS_MSG_MAPPED, &rm->m_flags); |
409 | wake_up(&rds_message_flush_waitq); | 409 | wake_up_interruptible(&rds_message_flush_waitq); |
410 | } | 410 | } |
411 | EXPORT_SYMBOL_GPL(rds_message_unmapped); | 411 | EXPORT_SYMBOL_GPL(rds_message_unmapped); |
412 | 412 | ||