• David Howells's avatar
    rxrpc: Fix overwaking on call poking · a33395ab
    David Howells authored
    If an rxrpc call is given a poke, it will get woken up unconditionally,
    even if there's already a poke pending (for which there will have been a
    wake) or if the call refcount has gone to 0.
    
    Fix this by only waking the call if it is still referenced and if it
    doesn't already have a poke pending.
    
    Fixes: 15f661dc ("rxrpc: Implement a mechanism to send an event notification to a call")
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    cc: Marc Dionne <marc.dionne@auristor.com>
    cc: linux-afs@lists.infradead.org
    a33395ab
call_object.c 20.1 KB