Re: Generic I/O

2011-11-15 Thread michi1
Hi! On 12:15 Mon 14 Nov , Kai Meyer wrote: ... My caller function has an atomic_t value that I set equal to the number of bios I want to submit. Then I pass a pointer to that atomic_t around to each of the bios which decrement it in the endio function for that bio. Then the caller

Generic I/O

2011-11-14 Thread Kai Meyer
I'm finding it's really simple to write generic I/O functions for block devices (via a struct block_device) to mimic the posix read() and write() functions (I have to supply the position, since I don't have a fd to keep a position for me, but that's perfectly ok). I've got a little hack