Skip to content

Commit

Permalink
RDS: rds_message_unmapped() doesn't need to check if queue active
Browse files Browse the repository at this point in the history
If the queue has nobody on it, then wake_up does nothing.

Signed-off-by: Andy Grover <andy.grover@oracle.com>
  • Loading branch information
Andy Grover committed Sep 9, 2010
1 parent cf4b738 commit ab1a692
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/rds/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,7 @@ void rds_message_wait(struct rds_message *rm)
void rds_message_unmapped(struct rds_message *rm)
{
clear_bit(RDS_MSG_MAPPED, &rm->m_flags);
if (waitqueue_active(&rds_message_flush_waitq))
wake_up(&rds_message_flush_waitq);
wake_up(&rds_message_flush_waitq);
}
EXPORT_SYMBOL_GPL(rds_message_unmapped);

0 comments on commit ab1a692

Please sign in to comment.