From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752783AbdHPRUW (ORCPT ); Wed, 16 Aug 2017 13:20:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:34342 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752018AbdHPRUT (ORCPT ); Wed, 16 Aug 2017 13:20:19 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8C5E12156A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Wed, 16 Aug 2017 13:20:02 -0400 From: Steven Rostedt To: Linus Torvalds Cc: LKML , Ingo Molnar , Peter Zijlstra , "Paul E. McKenney" , Andrew Morton Subject: Re: [PATCH v2] completion: Document that reinit_completion() must be called after complete_all() Message-ID: <20170816132002.206a38f7@gandalf.local.home> In-Reply-To: References: <20170816131202.195c2f4b@gandalf.local.home> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 16 Aug 2017 10:18:27 -0700 Linus Torvalds wrote: > On Wed, Aug 16, 2017 at 10:12 AM, Steven Rostedt wrote: > > The function complete_all() modifies the completion "done" variable to > > UINT_MAX, and no other caller (wait_for_completion(), etc) will modify > > it back to zero. That means that any call to complete_all() must have a > > reinit_completion() before that completion can be used again. > > > > Document this fact by the complete_all() function. > > > > Also document that completion_done() will always return true if > > complete_all() is called. > > Ack. Do I take it directly or is it indended for some other tree? > > Linus You can take it, if nobody else wants to. Thanks! -- Steve