--8323328-1011926451-1011533894=:7972
Content-Type: TEXT/PLAIN; charset=US-ASCII
the attached patch cleans up the task-runqueue locking code, done by Rusty
Russell and myself. The runqueue assignment is now a return value of an
inline function, not a side-effect of a macro.
Ingo
--8323328-1011926451-1011533894=:7972
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="rq-lock-cleanup-2.5.3-pre2-A3"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.33.0201201438140.7972@localhost.localdomain>
Content-Description:
Content-Disposition: attachment; filename="rq-lock-cleanup-2.5.3-pre2-A3"
LS0tIGxpbnV4L2tlcm5lbC9zY2hlZC5jLm9yaWcJU3VuIEphbiAyMCAxMTo0
NzowOCAyMDAyDQorKysgbGludXgva2VybmVsL3NjaGVkLmMJU3VuIEphbiAy
MCAxMTo0NzoxOCAyMDAyDQpAQCAtNTMsMjQgKzUzLDI4IEBADQogI2RlZmlu
ZSB0aGlzX3JxKCkJCWNwdV9ycShzbXBfcHJvY2Vzc29yX2lkKCkpDQogI2Rl
ZmluZSB0YXNrX3JxKHApCQljcHVfcnEoKHApLT5jcHUpDQogI2RlZmluZSBj
cHVfY3VycihjcHUpCQkoY3B1X3JxKGNwdSktPmN1cnIpDQotI2RlZmluZSBy
cV9jcHUocnEpCQkoKHJxKSAtIHJ1bnF1ZXVlcykNCiAjZGVmaW5lIHJ0X3Rh
c2socCkJCSgocCktPnBvbGljeSAhPSBTQ0hFRF9PVEhFUikNCiANCiANCi0j
ZGVmaW5lIGxvY2tfdGFza19ycShycSxwLGZsYWdzKQkJCQlcDQotZG8gewkJ
CQkJCQkJXA0KLXJlcGVhdF9sb2NrX3Rhc2s6CQkJCQkJXA0KLQlycSA9IHRh
c2tfcnEocCk7CQkJCQlcDQotCXNwaW5fbG9ja19pcnFzYXZlKCZycS0+bG9j
aywgZmxhZ3MpOwkJCVwNCi0JaWYgKHVubGlrZWx5KHJxX2NwdShycSkgIT0g
KHApLT5jcHUpKSB7CQkJXA0KLQkJc3Bpbl91b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ogb3V0X3Vu
bG9jazoNCi0JdW5sb2NrX3Rhc2tfcnEocnEscCxmbGFncyk7DQorCXVubG9j
a190YXNrX3JxKHJxLCBwLCAmZmxhZ3MpOw0KIG91dF91bmxvY2tfdGFza2xp
c3Q6DQogCXJlYWRfdW5sb2NrX2lycSgmdGFza2xpc3RfbG9jayk7DQogDQpA
QCAtMTIxNCw3ICsxMjE4LDcgQEANCiAJaWYgKHJxMSA9PSBycTIpDQogCQlz
cGluX2xvY2soJnJxMS0+bG9jayk7DQogCWVsc2Ugew0KLQkJaWYgKHJxX2Nw
dShycTEpIDwgcnFfY3B1KHJxMikpIHsNCisJCWlmIChycTEgPCBycTIpIHsN
CiAJCQlzcGluX2xvY2soJnJxMS0+bG9jayk7DQogCQkJc3Bpbl9sb2NrKCZy
cTItPmxvY2spOw0KIAkJfSBlbHNlIHsNCg==
--8323328-1011926451-1011533894=:7972--
-
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/