]> git.baikalelectronics.ru Git - kernel.git/commit
pppoatm: fix missing wakeup in pppoatm_send()
authorDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 28 Nov 2012 00:05:52 +0000 (00:05 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 2 Dec 2012 00:05:15 +0000 (00:05 +0000)
commitd447b11a0ef2358d6f07c29701bfa94007661a8b
tree530833693bc6df77fcee11f7632971c31429bcaf
parentdc28b29e6ca7cc5743d0028d2529e59f1a9c2960
pppoatm: fix missing wakeup in pppoatm_send()

Now that we can return zero from pppoatm_send() for reasons *other* than
the queue being full, that means we can't depend on a subsequent call to
pppoatm_pop() waking the queue, and we might leave it stalled
indefinitely.

Use the ->release_cb() callback to wake the queue after the sock is
unlocked.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Acked-by: Krzysztof Mazur <krzysiek@podlesie.net>
net/atm/pppoatm.c