From: Artem Bityuckiy <dedekind@oktetlabs.ru>
To: David Woodhouse <dwmw2@infradead.org>
Cc: linux-mtd@lists.infradead.org
Subject: Re: JFFS2 & the write buffer patch
Date: Thu, 11 Nov 2004 14:39:18 +0300 [thread overview]
Message-ID: <41934F66.2060907@oktetlabs.ru> (raw)
In-Reply-To: <1100171797.8191.1362.camel@hades.cambridge.redhat.com>
David Woodhouse wrote:
> On Wed, 2004-11-10 at 16:54 +0300, Artem Bityuckiy wrote:
>
>>Dear JFFS2 maintainers,
>>
>>I was recently fixed the problem with the JFFS2 write buffer races and
>>have posted it to the MTD list. Unfortunately, maintainers did not
>>comment the patch (only Estelle Hammache kindly responded).
>
>
> Sorry, I've been busy. Like you, I really don't like the extra locking.
> I was trying to find time to stare really hard at it and find a way of
> doing it without extra locks.
The best way that I see is:
1. Introduce additional functions like jffs2_flash_read_nolock(),
jffs2_flush_wbuf_pad_nolock(), etc. When the alloc_sem is locked, use
these functions (i.e., from the GC, etc).
We will need to accurately scan the JFFS2 code and substitute these new
calls instead of old ones.
2. (optional). change the alloc_sem type and make it read/write. The
only possible problem is that there is no "down_interruptible" call for
rw semaphore, only uninterruptible.
This will require a little bit more work, but no additional mutex is
needed. I may do this.
> Mail me a SSH public key and you can have an account to commit it
> yourself. But please let's convince ourself the new lock _really_ is
> necessary before we do that. I really don't like it.
>
Thanks, I'll sent it to you.
--
Best regards, Artem B. Bityuckiy
Oktet Labs (St. Petersburg), Software Engineer.
+78124286709 (office) +79112449030 (mobile)
E-mail: dedekind@oktetlabs.ru, web: http://www.oktetlabs.ru
next prev parent reply other threads:[~2004-11-11 11:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-10 13:54 JFFS2 & the write buffer patch Artem Bityuckiy
2004-11-11 11:16 ` David Woodhouse
2004-11-11 11:39 ` Artem Bityuckiy [this message]
2004-11-12 9:34 ` Artem B. Bityuckiy
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=41934F66.2060907@oktetlabs.ru \
--to=dedekind@oktetlabs.ru \
--cc=dwmw2@infradead.org \
--cc=linux-mtd@lists.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