Deadlocked kernel when using brw_kiovec to do direct I/O

2005-03-17 Thread Hanson, Jonathan M
I'm using brw_kiovec() on a 2.4.28 kernel to write directly to a hard drive from a kernel module that I wrote. I have a 64k buffer that I pass to brw_kiovec() and it writes the data to the hard drive directly like it's supposed to. However, I noticed that if I make more than one call to brw

RE: Using O_DIRECT for file writing in a kernel module

2005-02-12 Thread Hanson, Jonathan M
On Fri, 2005-02-11 at 17:58 -0700, Hanson, Jonathan M wrote: > I'm trying to write to a file with the O_DIRECT flag from a > kernel module in a 2.4 series of kernel on x86 hardware. I've learned > that the O_DIRECT flag requires that the amount of data written and the &g

Using O_DIRECT for file writing in a kernel module

2005-02-11 Thread Hanson, Jonathan M
I'm trying to write to a file with the O_DIRECT flag from a kernel module in a 2.4 series of kernel on x86 hardware. I've learned that the O_DIRECT flag requires that the amount of data written and the file offset pointer must be multiples of the underlying "block size." To try thin