]> git.baikalelectronics.ru Git - kernel.git/commit
sched/wait: Remove might_sleep() from wait_event_cmd()
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 2 Feb 2015 14:39:02 +0000 (09:39 -0500)
committerIngo Molnar <mingo@kernel.org>
Tue, 3 Feb 2015 11:14:25 +0000 (12:14 +0100)
commit2f964e372e59627c8b3776ef12d31643342567e2
treeef9955c7911ca95c7881f8e0371115a6d16fdf0b
parent8e4eb64dfaacc7ef341db78a1b79fea5fc42dfd4
sched/wait: Remove might_sleep() from wait_event_cmd()

The patch 356910d195f1 ("sched/wait: Add might_sleep() checks")
introduced a bug in the raid5 subsystem.

The function raid5_quiesce() (and resize_stripes()) uses the 'cmd'
part to release and acquire a spinlock (so we call the sleep
primitives in atomic context), and therefore we cannot do the
might_sleep() check.

Remove it.

Fixes: 356910d195f1 ("sched/wait: Add might_sleep() checks")
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/alpine.LRH.2.02.1502020935580.13510@file01.intranet.prod.int.rdu2.redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/wait.h