From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: [PATCHv1 0/4] spinlock: add qrwlocks Date: Fri, 18 Dec 2015 14:09:02 +0000 Message-ID: <1450447746-9305-1-git-send-email-david.vrabel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1a9vif-0006ap-IC for xen-devel@lists.xenproject.org; Fri, 18 Dec 2015 14:09:17 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: David Vrabel , Jan Beulich , Ian Campbell List-Id: xen-devel@lists.xenproject.org This series adds the qrwlocks from Linux. These are fair; under contention both readers and writers will be queued and obtain the lock in FIFO order (due to the fairness of the internal ticket lock). The implementation is all in C and thus architecture independent. Compared to the Linux implementation some of the memory barrier primitives were changed. The ARM maintainers may want to give this area a careful review. David