lkml.org 
[lkml]   [1996]   [Dec]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: How do I kill a process that is locked to a resource
Date

> The button is electronic, but I don't know whether there is a method to
> lock the disk in the drive through software.

It is a standard part of the kernel, all the drivers that deal with removable
disk media lock the media in the drive if they can. Only after the device
has been fsync()ed is the disk unlocked. There were some subtle bugs in
this support in the 1.2 kernels, but this was fixed long ago.

> This should also extend to hard disks that have gone south, which was the
> problem the original poster was experiencing.

If a *device* vanishes - by being unplugged for instance - there's really
nothing the kernel can do - it most likely has cached pages for that device
which it cannot dispose of. This is what causes the deadlocks.

Floppies aside, removable media are well understood and dealt with correctly,
but this has nothing to do with dead devices.

--------------------------------------------------------------------------
Grant R. Guenther grant@torque.net
--------------------------------------------------------------------------

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.183 / U:2.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site