Date: Sat, 26 Apr 2008 01:19:01 -0400 From: Coleman Kane <cokane@FreeBSD.org> To: freebsd-stable@freebsd.org Cc: imp@FreeBSD.org, rwatson@FreeBSD.org Subject: MFC Candidate: convert ffs_softdep.c over to callout(9) Message-ID: <1209187141.2508.6.camel@localhost>
next in thread | raw e-mail | index | archive | help
--=-gR8tcWH0GcBt/Ajzq+Ao Content-Type: multipart/mixed; boundary="=-DuJHNqKHGzeS18peO88Q" --=-DuJHNqKHGzeS18peO88Q Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi stable users, Recently I committed revision 1.219 of src/sys/ufs/ffs/ffs_softdep.c to remove the use of old-style timeout(9) calls in the softdep code and replace them with the new callout(9) API, to further MPSAFE-ness of the softdep code. I am attaching a patch to RELENG_7 that I'd like some people to test, which is just an MFC of this code. Can I get any testers (so that I can MFC this)? --=20 Coleman Kane --=-DuJHNqKHGzeS18peO88Q Content-Disposition: attachment; filename=ffs_softdep.c-newcallout-releng_7.diff Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name=ffs_softdep.c-newcallout-releng_7.diff; charset=UTF-8 ZGlmZiAtLWdpdCBhL3N5cy91ZnMvZmZzL2Zmc19zb2Z0ZGVwLmMgYi9zeXMvdWZzL2Zmcy9mZnNf c29mdGRlcC5jDQppbmRleCA2NjhmMDhmLi5mMWIwMWQyIDEwMDY0NA0KLS0tIHN5cy91ZnMvZmZz L2Zmc19zb2Z0ZGVwLmMNCisrKyBzeXMvdWZzL2Zmcy9mZnNfc29mdGRlcC5jDQpAQCAtNjYxLDcg KzY2MSw3IEBAIHN0YXRpYyBpbnQgbWF4aW5kaXJkZXBzID0gNTA7CS8qIG1heCBudW1iZXIgb2Yg aW5kaXJkZXBzIGJlZm9yZSBzbG93ZG93biAqLw0KIHN0YXRpYyBpbnQgdGlja2RlbGF5ID0gMjsJ LyogbnVtYmVyIG9mIHRpY2tzIHRvIHBhdXNlIGR1cmluZyBzbG93ZG93biAqLw0KIHN0YXRpYyBp bnQgcH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aG9sZCBpdCBhcm91bmQgdGhpcw0KKwkgKiBmdW5jdGlvbiBjYWxsLg0K KwkgKi8NCiAJKnN0YXRfY291bnRwICs9IDE7DQogCXdha2V1cF9vbmUoJnByb2Nfd2FpdGluZyk7 DQogCWlmIChwcm9jX3dhaXRpbmcgPiAwKQ0KLQkJaGFuZGxlID0gdGltZW91dChwYXVzZV90aW1l ciwgMCwgdGlja2RlbGF5ID4gMiA/IHRpY2tkZWxheSA6IDIpOw0KLQllbHNlDQotCQloYW5kbGUu Y2FsbG91dCA9IE5VTEw7DQotCUZSRUVfTE9DSygmbGspOw0KKwkJY2FsbG91dF9yZXNldCgmc29m dGRlcF9jYWxsb3V0LCB0aWNrZGVsYXkgPiAyID8gdGlja2RlbGF5IDogMiwNCisJCSAgICBwYXVz ZV90aW1lciwgMCk7DQogfQ0KIA0KIC8qDQo= --=-DuJHNqKHGzeS18peO88Q-- --=-gR8tcWH0GcBt/Ajzq+Ao Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEABECAAYFAkgSuz8ACgkQcMSxQcXat5c7YQCaAygTUuRo5l8ByaYYZx1SiZ6/ LMIAn2usEmKsZrF769K8S0WB4bcC1jww =7jVk -----END PGP SIGNATURE----- --=-gR8tcWH0GcBt/Ajzq+Ao--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1209187141.2508.6.camel>