From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965939AbeBMVkh (ORCPT ); Tue, 13 Feb 2018 16:40:37 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:46892 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965907AbeBMVkf (ORCPT ); Tue, 13 Feb 2018 16:40:35 -0500 Subject: Re: [PATCH] kthread: Export kthread_data() To: Christoph Hellwig Cc: Thomas Gleixner , Linus Torvalds , Tejun Heo , Ingo Molnar , linux-kernel@vger.kernel.org References: <1518187941-29275-1-git-send-email-longman@redhat.com> <20180213155033.GA16684@infradead.org> From: Waiman Long Organization: Red Hat Message-ID: <7084eed7-5343-f9cc-beda-816c3fae1022@redhat.com> Date: Tue, 13 Feb 2018 16:40:34 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <20180213155033.GA16684@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/13/2018 10:50 AM, Christoph Hellwig wrote: > On Fri, Feb 09, 2018 at 09:52:21AM -0500, Waiman Long wrote: >> When multiple kernel threads are created to cooperatively work on >> a common task, we may need a convenient way to access data that are >> specific to each kthread. >> >> The kthread_data() function fits this need. However, it was not >> visible to kthreads started in a kernel module. To solve this problem, >> the kthread_data() function is now exported allowing kthreads from >> kernel modules to use it. > Please send this along wit hthe actual user of it. It is the developers of the dm-vdo/kvdo modules that would like to use the kthread_data() function. See https://github.com/dm-vdo/kvdo Those modules have a bunch of kernel threads working on block storage deduplication/compression. -Longman