From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.227]) by ozlabs.org (Postfix) with ESMTP id D811367B26 for ; Tue, 20 Jun 2006 13:10:21 +1000 (EST) Received: by wr-out-0506.google.com with SMTP id 37so1084696wra for ; Mon, 19 Jun 2006 20:10:19 -0700 (PDT) Message-ID: <7cb1293c0606192010o1c4ebbdfw3719fcef8dcefd94@mail.gmail.com> Date: Mon, 19 Jun 2006 20:10:19 -0700 From: "Srinivas Murthy" To: linuxppc-dev Subject: Synch question 2.6.x MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_64283_8022425.1150773019635" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_64283_8022425.1150773019635 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I have this 2.6.x kernel mode component for which I have question regarding the synch reqmt. between workqueues (or tasklets) and kernel threads. The kernel threads are created from within the kernel module and there is no user-mode side to them. I share some global data in the kernel space that is accessed by the kernel thread and a work queue (or a tasklet) (kicked off of an isr top-half and also off of a kernel thread). Is there a need to synch access to this data if the preemption is off. What if the premption is turned on? In the case of workq's, if the synch is reqd, are down_xx() up_xx(), primitives the right ones to use? Thanks much in advance. _Srinivas ------=_Part_64283_8022425.1150773019635 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi,
 I have this 2.6.x kernel mode component for which I have question regarding the synch reqmt. between workqueues (or tasklets) and kernel threads. The kernel threads are created from within the kernel module and there is no user-mode side to them.
 
 I share some global data in the kernel space that is accessed by the kernel thread and a work queue (or a tasklet) (kicked off of an isr top-half and also off of a kernel thread).
 
 Is there a need to synch access to this data if the preemption is off. What if the premption is turned on?
 
 In the case of workq's, if the synch is reqd, are down_xx() up_xx(), primitives the right ones to use?
 
Thanks much in advance.
 
_Srinivas
 
 
 
------=_Part_64283_8022425.1150773019635--