Re: [PATCH nf] x_tables: Properly close read section with read_seqcount_retry

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

 



On Thu, Nov 19, 2020 at 10:53:13PM -0700, subashab@xxxxxxxxxxxxxx wrote:
> +struct xt_table_info
> +*xt_table_get_private_protected(const struct xt_table *table)
> +{
> +	return rcu_dereference_protected(table->private,
> +					 mutex_is_locked(&xt[table->af].mutex));
> +}
> +EXPORT_SYMBOL(xt_table_get_private_protected);

In all debug builds this function compiles to a single memory
dereference. Do you really want that out-of-line?



[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux