net: Generalise wq_has_sleeper helper
[linux-drm-fsl-dcu.git] / net / tipc / socket.c
index 552dbaba9cf386a07e6c4f499fda27ca1f8a8f4a..525acf6dd1c6f8be4a66b607c94c1acc66c02356 100644 (file)
@@ -1492,7 +1492,7 @@ static void tipc_write_space(struct sock *sk)
 
        rcu_read_lock();
        wq = rcu_dereference(sk->sk_wq);
-       if (wq_has_sleeper(wq))
+       if (skwq_has_sleeper(wq))
                wake_up_interruptible_sync_poll(&wq->wait, POLLOUT |
                                                POLLWRNORM | POLLWRBAND);
        rcu_read_unlock();
@@ -1509,7 +1509,7 @@ static void tipc_data_ready(struct sock *sk)
 
        rcu_read_lock();
        wq = rcu_dereference(sk->sk_wq);
-       if (wq_has_sleeper(wq))
+       if (skwq_has_sleeper(wq))
                wake_up_interruptible_sync_poll(&wq->wait, POLLIN |
                                                POLLRDNORM | POLLRDBAND);
        rcu_read_unlock();