From: Brad Boyer Subject: Re: poll: allow f_op->poll to sleep, take #3 Date: Sat, 22 Nov 2008 19:34:57 -0800 Message-ID: <20081123033457.GA1912@cynthia.pants.nu> References: <20081122123942.GF5707@parisc-linux.org> <4927FE87.6050005@gmail.com> <20081122105356.87856d04.akpm@linux-foundation.org> <4928B162.9030404@gmail.com> <4928C891.80405@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Davide Libenzi , Andrew Morton , Matthew Wilcox , Miklos Szeredi , arjan@linux.intel.com, Linus Torvalds , hch@infradead.org, Ingo Molnar , rminnich@sandia.gov, ericvh@gmail.com, Linux Kernel Mailing List , linux-fsdevel@vger.kernel.org To: Tejun Heo Return-path: Received: from [76.245.85.235] ([76.245.85.235]:59840 "EHLO cynthia.pants.nu" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1755384AbYKWDgK (ORCPT ); Sat, 22 Nov 2008 22:36:10 -0500 Content-Disposition: inline In-Reply-To: <4928C891.80405@gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Sun, Nov 23, 2008 at 12:05:53PM +0900, Tejun Heo wrote: > I thought try_to_wake_up() was made static to avoid abuse but then again > creating dummy waitqueue is an obvious abuse of waitqueue. What do > other people think? I'll be happy to use try_to_wake_up() directly. Do you need all the extra arguments? The function wake_up_process() is already a wrapper around try_to_wake_up() and is exported, but it doesn't have any arguments other than the task_struct and uses defaults for the other arguments. I'm not sure if anything in your code would break by ignoring the other possible values instead of passing them along from the arguments into the caller. Brad Boyer flar@allandria.com