Re: Manipulation of block driver queue



GürüPràçäd <guruteck@xxxxxxxxx> writes:
Device : Embedded device with SD card
Kernel : 2.6.14
Problem : while copying data take SD card out , put it back ,the
system crashes

Description:

udev is used for destruction and creation of device nodes and each
time it inserted it gets new inode number.

Driver accepts read/write to/from SD card from request queues . When
card is taken out it freezes the request queue from interrupt
handler.User process waits in blocking mode (process like cp,mv into
card) till the queue gets active. when the card is put back it
reactivates the request queue.

But due to changed inode number of device(from using udev) the waiting
userprocess continue to write to same inode old number and hence leads
to crashing the system.

I dont know how to solve this problem.

Assuming your analysis is correct, the problem is that udev doesn't
support hot-plugging of hot-pluggable device sensibly and the easy
solution is to simply not use it.
.



Relevant Pages

  • Re: [patch] Re: 2.6.14-rc5-mm1 - ide-cs broken!
    ... > devices where the media can change. ... > When you remove a CF card, the controller is removed with the card and ... which may be on a distribution which uses udev or not. ... comment on "userspace hacks" does sound like fixes to userspace bugs. ...
    (Linux-Kernel)
  • Manipulation of block driver queue
    ... while copying data take SD card out, put it back,the ... card is taken out it freezes the request queue from interrupt ... But due to changed inode number of device(from using udev) the waiting ... So how to terminate such processes from kernel? ...
    (comp.os.linux.development.system)
  • Manipulation of block driver queue
    ... while copying data take SD card out, put it back,the ... card is taken out it freezes the request queue from interrupt ... But due to changed inode number of device(from using udev) the waiting ... So how to terminate such processes from kernel? ...
    (comp.os.linux.hardware)
  • Manipulation of block driver queue
    ... while copying data take SD card out, put it back,the ... card is taken out it freezes the request queue from interrupt ... But due to changed inode number of device(from using udev) the waiting ... So how to terminate such processes from kernel? ...
    (comp.os.linux.embedded)
  • Re: dapper upgrade no sound
    ... recognize your card at some time (when udev runs) in the boot process". ... that is /not/ Dapper's kernel. ... udev does not have anything to do with restoring mixer levels. ...
    (Ubuntu)