Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755623AbaBUPHl (ORCPT ); Fri, 21 Feb 2014 10:07:41 -0500 Received: from mail-qc0-f177.google.com ([209.85.216.177]:55726 "EHLO mail-qc0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755191AbaBUPHj (ORCPT ); Fri, 21 Feb 2014 10:07:39 -0500 Date: Fri, 21 Feb 2014 10:07:35 -0500 From: Tejun Heo To: Alan Stern Cc: Greg Kroah-Hartman , laijs@cn.fujitsu.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH 5/9] usb: don't use PREPARE_DELAYED_WORK Message-ID: <20140221150735.GA460@htj.dyndns.org> References: <20140220205921.GA22830@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 21, 2014 at 10:06:05AM -0500, Alan Stern wrote: > > I think it should be fine to use INIT_DELAYED_WORK(), but Alan would > > know best. Alan? > > That's right; INIT_DELAYED_WORK() should be fine. Provided there's no > problem doing it from within the previous work routine. Yeah, that's completely fine. Once a work item starts execution, workqueue doesn't care about it at all - even freeing and recycling it is fine. Thanks. -- tejun -- 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/