From: Dmitry Adamushko Date: Wed, 9 Apr 2008 00:41:59 +0000 (-0700) Subject: mtd/chips: add missing set_current_state() to cfi_{amdstd,staa}_sync() X-Git-Tag: v2.6.25-rc9~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8e30e447c692aaa728c65930ebc0146f65e1e7b;p=pandora-kernel.git mtd/chips: add missing set_current_state() to cfi_{amdstd,staa}_sync() 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 Cc: David Woodhouse Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed