From: Martin Schwidefsky Date: Fri, 30 May 2008 08:03:33 +0000 (+0200) Subject: [S390] tape: fix race with stack local wait_queue_head_t. X-Git-Tag: v2.6.26-rc5~35^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4657fb8a98a4e02981a574492bbe470c147b6657;p=pandora-kernel.git [S390] tape: fix race with stack local wait_queue_head_t. A wait_event call with a stack local wait_queue_head_t structure that is used to do the wake up for the wait_event is inherently racy. After the wait_event finished the wake_up call might not have completed yet. Replace the stack local wait_queue_head_t in tape_do_io and tape_do_io_interruptible with a per device wait queue. Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed