From: Savin Zlobec <savin@elatec.si>
To: jeffc@logicpd.com
Cc: ecos-discuss@sources.redhat.com
Subject: [ECOS] Re: disk access mutex's
Date: Wed, 01 Sep 2004 07:01:00 -0000 [thread overview]
Message-ID: <413573BC.7080403@elatec.si> (raw)
Jeff Cooper wrote:
>I'm working on a CF driver for a Logic Product Development 7760 card engine.
>I've been looking at the CF driver for the Elatec v850 development board as a
>basis for the new driver.
>
>One thing I'm curious about is the lack of mutex's when accessing the CF
>hardware in the Elatec driver.
>
>Is contention for the disk device handled at a layer higher up than the device
>driver? I've been digging through the source for the io disk and haven't
>found any kind of access control.
>
>Am I just missing where this is being handled? If so, can anyone point me in
>the right direction?
>
>
If you intend to access several partitions simultaneousely or one
partition through an fs
that doesn't serialize its io operations, then the disk io funs should
be mutex protected.
In any case you are right io_disk need an mutex and it should be in
disk.c not in lower layers.
savin
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
next reply other threads:[~2004-09-01 7:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-01 7:01 Savin Zlobec [this message]
2004-09-02 13:02 ` Jeff Cooper
2004-09-02 14:09 ` Savin Zlobec
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=413573BC.7080403@elatec.si \
--to=savin@elatec.si \
--cc=ecos-discuss@sources.redhat.com \
--cc=jeffc@logicpd.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).