--168447515-942040992-996896883=:15155
Content-Type: TEXT/PLAIN; charset=US-ASCII
You might try this approach instead, which just removes the thing that
might deadlock and always is unfair..
(Ugh, I hate attachements, but the system I'm sending this from has this
broken version of 'pine' that will mess up white-space).
For nicer interactive behaviour while flushing things out, the
inode_fsync() thing should really use "write_locked_buffers()". That's a
separate patch, though.
Linus
--168447515-942040992-996896883=:15155
Content-Type: TEXT/PLAIN; charset=US-ASCII; name=patch
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.33.0108032048030.15155@penguin.transmeta.com>
Content-Description:
Content-Disposition: attachment; filename=patch
ZGlmZiAtdSAtLXJlY3Vyc2l2ZSAtLW5ldy1maWxlIHByZTMvbGludXgvZHJp
dmVycy9ibG9jay9sbF9yd19ibGsuYyBsaW51eC9kcml2ZXJzL2Jsb2NrL2xs
X3J3X2Jsay5jDQotLS0gcHJlMy9saW51eC9kcml2ZXJzL2Jsb2NrL2xsX3J3
X2Jsay5jCVRodSBKdWwgMTkgMjA6NTE6MjMgMjAwMQ0KKysrIGxpbnV4L2Ry
aXZlcnMvYmxvY2svbGxfcndfYmxrLmMJRnJpIEF1ZyAgMyAyMDoyODo0MyAy
MDAxDQpAQCAtMTE5LDE3ICsxMTksMTAgQEANCiBpbnQgKiBtYXhfc2VjdG9y
c1tNQVhfQkxLREVWXTsNCiANCiAvKg0KLSAqIHF1ZXVlZCBzZWN0b3JzIGZv
ciBhbGwgZGV2aWNlcywgdXNlZCB0byBtYWtlIHN1cmUgd2UgZG9uJ3QgZmls
bCBhbGwNCi0gKiBvZiBtZW1vcnkgd2l0aCBsb2NrZWQgYnVmZmVycw0KKyAq
IEhvdyBtYW55IHJlcWV1c3RzIGRvIHdlIGFsbG9jYXRlIHBlciBxdWV1ZSwN
CisgKiBhbmQgaG93IG1hbnkgZG8gd2UgImJhdGNoIiBvbiBmcmVlaW5nIHRo
ZW0/DQogICovDQotYXRvbWljX3QgcXVldWVkX3NlY3RvcnM7DQotDQotLyoN
Ci0gK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JXA0KLQkJYXRvbWljX3Nl
dCgmcXVldWVkX3NlY3RvcnMsIDApOwkJXA0KLQl9DQotDQotI2RlZmluZSBi
bGtfc3RhcnRlZF9pbyhuc2VjdHMpCQkJCVwNCi0JYXRvbWljX2FkZChuc2Vj
dHMsICZxdWV1ZWRfc2VjdG9ycyk7DQorI2RlZmluZSBibGtfZmluaXNoZWRf
aW8obnNlY3RzKQlkbyB7IH0gd2hpbGUgKDApDQorI2RlZmluZSBibGtfc3Rh
cnRlZF9pbyhuc2VjdHMpCWRvIHsgfSB3aGlsZSAoMCkNCiANCiAjZW5kaWYN
Cg==
--168447515-942040992-996896883=:15155--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/