aboutsummaryrefslogtreecommitdiffstats
path: root/net/rds
diff options
context:
space:
mode:
authorAndy Grover <andy.grover@oracle.com>2010-03-29 16:52:12 -0700
committerAndy Grover <andy.grover@oracle.com>2010-09-08 18:12:19 -0700
commitab1a6926f589c51e7a57ce7544d85272c4acc854 (patch)
treedbe19519db76e5dea8d01864fcd4c39441d26b64 /net/rds
parentcf4b7389ee812817deeb11da1422004e01b50646 (diff)
downloadkernel_samsung_tuna-ab1a6926f589c51e7a57ce7544d85272c4acc854.zip
kernel_samsung_tuna-ab1a6926f589c51e7a57ce7544d85272c4acc854.tar.gz
kernel_samsung_tuna-ab1a6926f589c51e7a57ce7544d85272c4acc854.tar.bz2
RDS: rds_message_unmapped() doesn't need to check if queue active
If the queue has nobody on it, then wake_up does nothing. Signed-off-by: Andy Grover <andy.grover@oracle.com>
Diffstat (limited to 'net/rds')
-rw-r--r--net/rds/message.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/rds/message.c b/net/rds/message.c
index dd915e3..9122b53 100644
--- a/net/rds/message.c
+++ b/net/rds/message.c
@@ -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);