https://github.com/torvalds/linux
Revision f8e30e447c692aaa728c65930ebc0146f65e1e7b authored by Dmitry Adamushko on 09 April 2008, 00:41:59 UTC, committed by Linus Torvalds on 09 April 2008, 01:25:53 UTC
cfi_amdstd_sync() and cfi_staa_sync() call schedule() without changing task's
state appropriately.

In case of e.g.  chip->state == FL_ERASING, cfi_*_sync() will be busy-looping
either redundantly for a fixed interval of time (for SCHED_NORMAL tasks) or
possibly endlessly (for RT tasks and UP).

Signed-off-by: Dmitry Adamushko <dmitry.adamushko@gmail.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent b9ad898
History
Tip revision: f8e30e447c692aaa728c65930ebc0146f65e1e7b authored by Dmitry Adamushko on 09 April 2008, 00:41:59 UTC
mtd/chips: add missing set_current_state() to cfi_{amdstd,staa}_sync()
Tip revision: f8e30e4

back to top