Skip to content

Commit

Permalink
RDS: Do wait_event_interruptible instead of wait_event
Browse files Browse the repository at this point in the history
Can't see a reason not to allow signals to interrupt the wait.

Signed-off-by: Andy Grover <andy.grover@oracle.com>
  • Loading branch information
Andy Grover committed Sep 9, 2010
1 parent fcc5450 commit a40aa92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/rds/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,14 +399,14 @@ int rds_message_inc_copy_to_user(struct rds_incoming *inc,
*/
void rds_message_wait(struct rds_message *rm)
{
wait_event(rds_message_flush_waitq,
wait_event_interruptible(rds_message_flush_waitq,
!test_bit(RDS_MSG_MAPPED, &rm->m_flags));
}

void rds_message_unmapped(struct rds_message *rm)
{
clear_bit(RDS_MSG_MAPPED, &rm->m_flags);
wake_up(&rds_message_flush_waitq);
wake_up_interruptible(&rds_message_flush_waitq);
}
EXPORT_SYMBOL_GPL(rds_message_unmapped);

0 comments on commit a40aa92

Please sign in to comment.