Re: Manipulation of block driver queue



Thanks for reply

If i free the queue , what happens to userspace process which is
trying to write on it?
Will the process wait in blocking mode till data written? or it go
back to userspace with error code?

Regards
On Apr 28, 6:22 pm, Rainer Weikusat <rweiku...@xxxxxxxxxxx> wrote:
GürüPràçäd <gurut...@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: OT: Censuses
    ... waited in the queue. ... pulled over by a police officer and a yellow jacket female erk wants to ask me a few question. ... I used the same "Sorry but owing to the official secrets act I can't tell you anything, except I am now late for a meeting where your departments budget is minuted." ... All made up but it did stop her in her tracks and I got waved on with no questions or card to fill out. ...
    (uk.rec.motorcycles)
  • Re: atheros madwifi problems
    ... not support your card or your card is broken. ... PCI: Sharing IRQ 10 with 0000:00:02.7 ... wifi0: Use hw queue 1 for WME_AC_BE traffic ...
    (comp.os.linux.setup)
  • Re: How to cleanly shut down a block device
    ... where there are no users of a card when it is ... as blocking any new requests to be added to the queue. ... gone" check in your request_fn handler, ...
    (Linux-Kernel)
  • Re: Deadlocks in VB 6?
    ... We are using a data acquisition card from National Instruments and their ... The plotting routine (when the timer fires) reads from the global ... The original application may have not implemented a queue, ... If you want to go with implementing flow control using a queue, ...
    (microsoft.public.vb.general.discussion)
  • Re: INPSMB errors
    ... > I'm working on a card reader interface for SIMH. ... I'm submtting a batch job via the card reader. ... The queue manager is running. ...
    (comp.os.vms)