• Santiago Leon's avatar
    [PATCH] fix buffer starvation race in ibmveth · 78aee79d
    Santiago Leon authored
    There's a chance that the receive buffers are being consumed at the same
    rate as they are being replenished in ibmveth_replenish_task()... 
    Meanwhile, the calls to schedule_replenishing() from ibmveth_poll() won't
    schedule another replenishing cycle (because the not_replenishing flag is
    zero), starving the buffers and making the adapter unable to receive
    packets unless the module is reloaded...  Here's a small patch that will
    fix it by scheduling another replenishing task after toggling the
    not_replenishing flag.
    Signed-Off-By: default avatarSantiago Leon <santil@us.ibm.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    78aee79d
ibmveth.c 35.3 KB