mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 04:34:08 +08:00
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>
This commit is contained in:
parent
cf4b7389ee
commit
ab1a6926f5
@ -406,8 +406,7 @@ void rds_message_wait(struct rds_message *rm)
|
|||||||
void rds_message_unmapped(struct rds_message *rm)
|
void rds_message_unmapped(struct rds_message *rm)
|
||||||
{
|
{
|
||||||
clear_bit(RDS_MSG_MAPPED, &rm->m_flags);
|
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);
|
EXPORT_SYMBOL_GPL(rds_message_unmapped);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user