From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH v2 net-next 06/12] qed: Add LL2 slowpath handling Date: Thu, 05 Oct 2017 17:20:13 -0700 (PDT) Message-ID: <20171005.172013.746380495399822.davem@davemloft.net> References: <20171005.120629.2161199733119811102.davem@davemloft.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, linux-rdma@vger.kernel.org, dledford@redhat.com, Ariel.Elior@cavium.com To: Michal.Kalderon@cavium.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:54030 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751432AbdJFAUP (ORCPT ); Thu, 5 Oct 2017 20:20:15 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: From: "Kalderon, Michal" Date: Thu, 5 Oct 2017 20:27:22 +0000 > The spinlock is required for the case that rx buffers are posted > from a different thread, where it could be run simultaneously to the > rxq_completion. This only brings us back to my original argument, if the lock is necessary in order to synchronize with those paths, how can you possible drop the lock safely here? Is it because you re-read the head and tail pointers of the queue each time around the loop?