View Issue Details

IDProjectCategoryView StatusLast Update
0000139Kolibri OS (trunk)Kernelpublic2021-06-20 14:00
Reporterdunkaist Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status confirmedResolutionopen 
PlatformAny x86 / Любой x86OSKolibriOSOS VersionSVN autobuilds
Product VersionSVN build / автосборка SVN 
Target Version0.9.0.0 
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 / любой

Activities

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