Thread (16 messages) 16 messages, 6 authors, 2013-08-13

Re: [PATCH net v5 1/5] bnx2x: protect different statistics flows

flat view

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2013-08-13 00:12:12

On Tue, 13 Aug 2013 02:24:59 +0300
"Dmitry Kravkov" [off-list ref] wrote:
+	bool					stats_started;
+	struct semaphore			stats_sema;
Is there a reason to use a counting semaphore? Do you expect it to
be held across user process boundary? or want count > 1?

Use of semaphores as a locking primitive is discouraged,
instead us a mutex.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help