From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760868Ab1F1S5R (ORCPT ); Tue, 28 Jun 2011 14:57:17 -0400 Received: from mail.candelatech.com ([208.74.158.172]:59377 "EHLO ns3.lanforge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759767Ab1F1S4k (ORCPT ); Tue, 28 Jun 2011 14:56:40 -0400 Message-ID: <4E0A23E7.1000606@candelatech.com> Date: Tue, 28 Jun 2011 11:56:39 -0700 From: Ben Greear Organization: Candela Technologies User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-2.fc11 Thunderbird/3.0.4 MIME-Version: 1.0 To: Linux Kernel Mailing List Subject: workqueue question. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! Is it OK to call INIT_WORK(&foo, bar) if we are currently being called by the work-queue using foo? Also, is it valid to free the memory containing foo in a workqueue callback? Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com