Skip to content

Commit

Permalink
lib/debugobjects.c: remove unnecessary work pending test
Browse files Browse the repository at this point in the history
Remove unnecessary work pending test before calling schedule_work().  It
has been tested in queue_work_on() already.  No functional changed.

Signed-off-by: Xie XiuQi <xiexiuqi@huawei.com>
Reviewed-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Xie XiuQi authored and Linus Torvalds committed Nov 13, 2013
1 parent ec778ed commit d3773ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/debugobjects.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ static void free_object(struct debug_obj *obj)
* initialized:
*/
if (obj_pool_free > ODEBUG_POOL_SIZE && obj_cache)
sched = keventd_up() && !work_pending(&debug_obj_work);
sched = keventd_up();
hlist_add_head(&obj->node, &obj_pool);
obj_pool_free++;
obj_pool_used--;
Expand Down

0 comments on commit d3773ba

Please sign in to comment.