Re: [PATCH 16/16] rxrpc: Replace smp_read_barrier_depends() with lockless_dereference()

From: David Howells
Date: Thu Nov 13 2014 - 15:17:55 EST


Pranith Kumar <bobby.prani@xxxxxxxxx> wrote:

> loop != call->acks_head || stop;
> loop = (loop + 1) & (call->acks_winsz - 1)
> ) {
> - p_txb = call->acks_window + loop;
> - smp_read_barrier_depends();
> + p_txb = lockless_dereference(call)->acks_window + loop;

Nack. You've stuck an implicit barrier on a dereference that doesn't matter.
And similar for other hunks of this patch.

David
--
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/