From: Alice Hennessy <ahennessy@mvista.com>
To: David Woodhouse <dwmw2@infradead.org>
Cc: mtd@infradead.org, ahennessy@mvista.com
Subject: cfi_amdext_sync, cfi_intelext_sync
Date: Fri, 06 Oct 2000 16:35:28 -0700 [thread overview]
Message-ID: <39DE61C0.48806B95@mvista.com> (raw)
In-Reply-To: 6948.970759350@redhat.com
Hi,
Found a bug in cfi_cmdset_0001.c and cfi_cmdset_0002.c in functions
cfi_intelext_sync and cfi_amdext_sync respectively. The call to
remove_wait_queue is missing after the "add_wait_queue;spin_unlock_bh;
schedule" sequence in the default case.
The gory details: Our test caused erase and sync to be called
concurrently. The sync code sees the chip state as FL_ERASING and
correctly calls add_wait_queue. The problem is that remove_wait_queue is
never called after the schedule. This causes wait's task_list to be added
to chip->wq's task_list several times which results in an incorrect circular
list. The final outcome is a hang when the erase logic calls wake_up which
ends up in an infinite loop running through chip->wq's task_list. A nice
touch is that we are in spin_lock_bh so the system hangs as well.
If you agree, should I check in the fix?
Alice
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
next prev parent reply other threads:[~2000-10-06 23:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E13hCjo-0006JB-00@infradead.org>
2000-10-05 15:22 ` MTD CVS update: 'mtd/kernel pmc551.c' David Woodhouse
2000-10-06 23:35 ` Alice Hennessy [this message]
2000-10-07 9:57 ` cfi_amdext_sync, cfi_intelext_sync David Woodhouse
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=39DE61C0.48806B95@mvista.com \
--to=ahennessy@mvista.com \
--cc=dwmw2@infradead.org \
--cc=mtd@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox