MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000139Kolibri OS (trunk)[All Projects] Kernelpublic2021-06-20 13:592021-06-20 14:00
Reporterdunkaist 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusconfirmedResolutionopen 
PlatformAny x86 / Любой x86OSKolibriOSOS VersionSVN autobuilds
Product VersionSVN build / автосборка SVN 
Target Version0.9.0.0Fixed in Version 
Summary0000139: Can't access a partition that was locked by a crashed process
DescriptionCurrent FS code works like this: lock (a mutex guarding access to) a partition, read/write data, unlock the partition.
When a thread crashes while reading/writing, the partition is left locked. Therefore other programs can't acquire the lock and access that partition anymore.

In theory, kernel could release acquired locks when threads crash. In practice, kernel has no idea what locks have been acquired by a given thread.
It is possilble to modify FS code to fill an array of acquired locks. In fact, this is very similar to an array of file descriptors.

So, resolution of this issue could be a side effect of file descriptors when they are implemented.
Additional Informationhttps://board.kolibrios.org/viewtopic.php?f=31&t=3397&start=150#p76785 [^]
Tagsfasm, fs, kernel
SVN revision / ревизия SVN
Type of distribution / Тип дистрибутиваany / любой
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2021-06-20 13:59 dunkaist New Issue
2021-06-20 13:59 dunkaist Status new => confirmed
2021-06-20 14:00 dunkaist Tag Attached: fs
2021-06-20 14:00 dunkaist Tag Attached: kernel
2021-06-20 14:00 dunkaist Tag Attached: fasm


Copyright © 2000 - 2021 MantisBT Team
Powered by Mantis Bugtracker