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)
commit0e56d99a5b557c760394d6941d7d1fc8d279eff3
tree530833693bc6df77fcee11f7632971c31429bcaf
parentb89588531f1db93a218c108eee713ff6002a67bf
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