[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to load a file from kernel?



On Fri, 2004-10-01 at 13:37 +0200, Ferenc Havasi wrote:
> > Almost everything works but I've problem at loading the model files.
> > I know the inode number of the file, I can "iget" it and see its
> > attributes, allocate memory for it. It's OK. But if I try to read the
> > content of the file by jffs2_read_inode_range() there will be a lots of
> >
> > Sep 27 22:07:45 kpax vmunix: bad: scheduling while atomic!
> 
> I still don't know the reason of that error messages above, but I
> find a better way to load model file at mount time.

It happens because you call a function which may sleep, from a context
where that's not allowed. Probably because you're holding a spinlock.

-- 
dwmw2


To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to majordomo@xxxxxxx.com