]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
fs: rename "delayed_fput" infrastructure to "fput_global"
authorJeff Layton <jlayton@poochiereds.net>
Tue, 20 Oct 2015 17:33:37 +0000 (13:33 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 23 Oct 2015 19:57:35 +0000 (15:57 -0400)
commit978529197fc4cfe28d87a9d3fda4659e855ecf4e
treea8f2f6d5aac7041208353c614a06714b70dd6736
parent97b4e7cbcc97deb79e9a861aad9d89e084bd6571
fs: rename "delayed_fput" infrastructure to "fput_global"

delayed_fput work is only delayed until the workqueue job runs. It's
even possible that it will run immediately after you call it if the
workqueue job happens to be executing at the time. What it does
guarantee is that the final __fput will run in a different task than the
the one that queued it. It's this property that we want to use in the
NFSD code to close files in advance of a setlease attempt by userland.

Change the name of the "delayed_fput" infrastructure to "fput_global"
as that better describes what this code does.

Cc: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/file_table.c
include/linux/file.h
init/main.c