]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vfree: don't schedule free_work() if llist_add() returns false
authorOleg Nesterov <oleg@redhat.com>
Wed, 19 Jun 2013 00:07:02 +0000 (10:07 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:26:54 +0000 (17:26 +1000)
commit2daa9ccb76d55bddf9b07eedade682986cec46a9
treee8b42a55a4dee7111e153caa865a2e05f8fdaed1
parentd35d6eafce8d94362223a693659bf0f83f613f74
vfree: don't schedule free_work() if llist_add() returns false

vfree() only needs schedule_work(&p->wq) if p->list was empty, otherwise
vfree_deferred->wq is already pending or it is running and didn't do
llist_del_all() yet.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmalloc.c