• Chuck Lever's avatar
    svcrdma: Don't account for Receive queue "starvation" · 2d6491a5
    Chuck Lever authored
    >From what I can tell, calling ->recvfrom when there is no work to do
    is a normal part of operation. This is the only way svc_recv can
    tell when there is no more data ready to receive on the transport.
    
    Neither the TCP nor the UDP transport implementations have a
    "starve" metric.
    
    The cost of receive starvation accounting is bumping an atomic, which
    results in extra (IMO unnecessary) bus traffic between CPU sockets,
    while holding a spin lock.
    Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
    Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
    2d6491a5
svc_rdma_recvfrom.c 24.6 KB