Re: [PATCH 2.6.21.5-rt17] IPV6: estalished connections are not shown with "cat /proc/net/tcp6"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Masayuki Nakagawa <nakagawa.msy@xxxxxxxxxxxxxx>
Date: Tue, 28 Aug 2007 18:41:38 -0700

> +static inline void __inet_hash_setbit(unsigned long *bitmask,
> +	unsigned int index)
> +{
> +	if (bitmask)
> +		set_bit(index, bitmask);
> +}
> +
> +static inline void __inet_hash_clearbit(unsigned long *bitmask,
> +	unsigned int index)
> +{
> +	if (bitmask)
> +		clear_bit(index, bitmask);
> +}
> +

A new atomic operation every single socket hashing insert or delete
operation is way too much amount of overhead for what should be a
trivial problem.

Please fix this in another way that does not add new locks or atomics
to the socket creation and destruction fast paths, thank you.
-
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux