From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754239AbbINOTY (ORCPT ); Mon, 14 Sep 2015 10:19:24 -0400 Received: from mail-yk0-f170.google.com ([209.85.160.170]:35045 "EHLO mail-yk0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751901AbbINOTW (ORCPT ); Mon, 14 Sep 2015 10:19:22 -0400 Date: Mon, 14 Sep 2015 10:19:18 -0400 From: Jeff Layton To: Al Viro Cc: bfields@fieldses.org, linux-nfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/4] fs: add fput_queue Message-ID: <20150914101918.3d9c9235@tlielax.poochiereds.net> In-Reply-To: <20150914141539.GS22011@ZenIV.linux.org.uk> References: <1442238355-8203-1-git-send-email-jeff.layton@primarydata.com> <1442238355-8203-4-git-send-email-jeff.layton@primarydata.com> <20150914141539.GS22011@ZenIV.linux.org.uk> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.28; x86_64-redhat-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 Mon, 14 Sep 2015 15:15:39 +0100 Al Viro wrote: > On Mon, Sep 14, 2015 at 09:45:54AM -0400, Jeff Layton wrote: > > +/** > > + * fput_queue - do an fput without using task_work > > + * @file: file of which to put the reference > > + * > > + * If we need to ensure that the final __fput is done on a file before > > + * returning to userland, then we can't queue it to task_work. For that we > ????????? > > + * borrow the infrastructure used by kthreads, and the task can then just > > + * called flush_delayed_fput to ensure that the final fput has completed. > > Are you sure that it's not a typo? I don't think so, but it could be clearer. Something like this maybe? "then we can't queue it via task_work_add." -- Jeff Layton