Received: by mail.netbsd.org (Postfix, from userid 605) id B823514A31A; Tue, 24 Sep 2013 23:45:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id D652A14A318 for ; Tue, 24 Sep 2013 23:45:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id nGdI6T0IULpA for ; Tue, 24 Sep 2013 23:45:17 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 1617A14A301 for ; Tue, 24 Sep 2013 23:45:16 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id B9C2196; Tue, 24 Sep 2013 23:45:16 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Tue, 24 Sep 2013 23:45:16 +0000 From: "Mindaugas Rasiukevicius" Subject: CVS commit: src/lib/librumpuser To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20130924234516.B9C2196@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Mindaugas Rasiukevicius" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: rmind Date: Tue Sep 24 23:45:16 UTC 2013 Modified Files: src/lib/librumpuser: rumpuser_pth.c Log Message: rumpuser_rwlock: replace internal pthread_spin_lock (for protecting reader count) with atomic operations. As pthread_spin_lock is not adaptive lock, it can have hugely negative impact if contended here, especially with priority inversions. Now contended rwlock(9) no longer falls flat in RUMP kernels. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/lib/librumpuser/rumpuser_pth.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.