From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S940018AbcJYDnc (ORCPT ); Mon, 24 Oct 2016 23:43:32 -0400 Received: from helcar.hengli.com.au ([209.40.204.226]:53017 "EHLO helcar.hengli.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752105AbcJYDna (ORCPT ); Mon, 24 Oct 2016 23:43:30 -0400 Date: Tue, 25 Oct 2016 11:43:18 +0800 From: Herbert Xu To: Petr Mladek Cc: "David S. Miller" , linux-crypto@vger.kernel.org, Tejun Heo , linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: engine - Handle the kthread worker using the new API Message-ID: <20161025034318.GH18685@gondor.apana.org.au> References: <1476878070-12024-1-git-send-email-pmladek@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1476878070-12024-1-git-send-email-pmladek@suse.com> 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 Wed, Oct 19, 2016 at 01:54:30PM +0200, Petr Mladek wrote: > Use the new API to create and destroy the crypto engine kthread > worker. The API hides some implementation details. > > In particular, kthread_create_worker() allocates and initializes > struct kthread_worker. It runs the kthread the right way > and stores task_struct into the worker structure. > > kthread_destroy_worker() flushes all pending works, stops > the kthread and frees the structure. > > This patch does not change the existing behavior except for > dynamically allocating struct kthread_worker and storing > only the pointer of this structure. > > It is compile tested only because I did not find an easy > way how to run the code. Well, it should be pretty safe > given the nature of the change. > > Signed-off-by: Petr Mladek Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt