This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: disk access mutex's


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]