From: Martin Schwidefsky Date: Thu, 25 Dec 2008 12:38:38 +0000 (+0100) Subject: [S390] serialize stp/etr work X-Git-Tag: v2.6.29-rc1~584^2~77 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b3016b781abeabc502042c942cbc611e31250c7;p=pandora-kernel.git [S390] serialize stp/etr work The work function dispatched with schedule_work() can be run twice on different cpus because run_workqueue clears the WORK_STRUCT_PENDING bit and then executes the function. Another cpu can call schedule_work() again and run the work function a second time before the first call is completed. This patch serialized the etr and stp work function with a mutex. Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed