Re: [PATCH] Add FUTEX_CMP_REQUEUE futex op

From: Ingo Oeser
Date: Sat May 22 2004 - 10:17:42 EST


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 22 May 2004 01:05, Andrew Morton wrote:
> You've added an smp_mb(). These things are becoming like lock_kernel() -
> hard for the reader to discern what it's protecting against.
>
> Please always include a comment when adding a barrier like this.

What about including this in the API?

sth. like

#define smp_mb(why) do { \
static __debugdata__ char __lock_reason[] = why; \
} while(0)


would be sufficient. __debugdata__ section
will then be stripped from compressed image but not vmlinux.


Is there another way to force developers to comment? ;-)


Regards

Ingo Oeser

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFArycyU56oYWuOrkARAljxAKDNE04H2/zr+rZcu1SAR3x19rUtHgCgwqKV
+Mpszd42hQ7hDQjphDobNRk=
=gh0g
-----END PGP SIGNATURE-----

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/