]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
RDS: rds_message_unmapped() doesn't need to check if queue active
authorAndy Grover <andy.grover@oracle.com>
Mon, 29 Mar 2010 23:52:12 +0000 (16:52 -0700)
committerAndy Grover <andy.grover@oracle.com>
Thu, 9 Sep 2010 01:12:19 +0000 (18:12 -0700)
If the queue has nobody on it, then wake_up does nothing.

Signed-off-by: Andy Grover <andy.grover@oracle.com>
net/rds/message.c

index dd915e3e492dc6f64ea7b4af1651d064b3ca4427..9122b53921117cc0e055f7bb0d7cfd6195c19356 100644 (file)
@@ -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);