On Wed, Jan 13, 2010 at 06:38:06PM -0500, Jeff Mahoney wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 12/17/2009 12:43 AM, Nick Piggin wrote:
On Wed, Dec 16, 2009 at 01:54:05PM -0500, Jeff Mahoney wrote:
A previous version of this patch did essentially the same thing except it open coded the read/write calls instead. You can see why I think this version is a bit more flexible.
As an aside, I think one potential solution might be to implement a simple_file_write() that sidesteps all of the generic infrastructure surrounding do_sync_write().
I'm exploring that now.
Open coding something minimal might be the best idea, yes.
Ok. I've added an initramfs_read and initramfs_write that are really simplified versions of what you'd expect.
It works for me and I don't get any scheduling while atomic BUGs anymore. It's not going to win any prizes for a clean solution, though. ;)
Did you check it in? I couldn't see what branch it is in to have a look at it. I agree probably not the cleanEST, but alternatives seem like major audits and/or rearranging of init process :) Thanks, Nick -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org