Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757570Ab3CTTDg (ORCPT ); Wed, 20 Mar 2013 15:03:36 -0400 Received: from mail-la0-f67.google.com ([209.85.215.67]:48054 "EHLO mail-la0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755643Ab3CTTDf (ORCPT ); Wed, 20 Mar 2013 15:03:35 -0400 MIME-Version: 1.0 Date: Wed, 20 Mar 2013 11:45:32 -0700 Message-ID: Subject: Workqueue behaviour - Synchronization within submitted work. From: Vijay To: linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 665 Lines: 16 In the new workqueue architecture, I have a question regarding synchronization between different "work" submitted to the same workqueue. For example: * I submit two "works" A and B to a common driver specific workqueue (W). * Each A and B, meddle with a certain shared data SD. * Am I guaranteed serialized execution of A and B, or should I play safe and use a semaphore (acquire/release) with A and B ? Thanks, Vijay -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/