From 74aba11713fa8065699a4a4bcf409c82b04dba77 Mon Sep 17 00:00:00 2001 From: Kip Macy Date: Tue, 15 Jan 2008 03:21:02 +0000 Subject: [PATCH] remove superfluous locking from dequeue --- sys/dev/cxgb/cxgb_osdep.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/dev/cxgb/cxgb_osdep.h b/sys/dev/cxgb/cxgb_osdep.h index fb65d87c56de..9a2fb9ecf0c6 100644 --- a/sys/dev/cxgb/cxgb_osdep.h +++ b/sys/dev/cxgb/cxgb_osdep.h @@ -225,7 +225,6 @@ buf_ring_dequeue(struct buf_ring *mr) ring = (caddr_t *)mr->br_ring; mask = mr->br_size - 1; - mtx_lock(&mr->br_lock); /* XXX temporary ? */ cons = mr->br_cons; mb(); prod = mr->br_prod; @@ -236,7 +235,6 @@ buf_ring_dequeue(struct buf_ring *mr) mr->br_cons = (cons + 1) & mask; mb(); } - mtx_unlock(&mr->br_lock); /* XXX temporary ? */ return (m); }