diff options
author | Dmitry Adamushko <dmitry.adamushko@gmail.com> | 2008-04-08 17:41:59 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-08 18:25:53 -0700 |
commit | f8e30e447c692aaa728c65930ebc0146f65e1e7b (patch) | |
tree | 32f6ac1293266be63ae6125868d08f7c39668177 /drivers/scsi/wd33c93.c | |
parent | b9ad8985f25c158e71844c78277a0c0b3779d0d3 (diff) |
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 <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>
Diffstat (limited to 'drivers/scsi/wd33c93.c')
0 files changed, 0 insertions, 0 deletions