summaryrefslogtreecommitdiff
path: root/fs/aufs/f_op.c
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-09-11 04:34:46 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-09-11 04:34:46 -0300
commit863981e96738983919de841ec669e157e6bdaeb0 (patch)
treed6d89a12e7eb8017837c057935a2271290907f76 /fs/aufs/f_op.c
parent8dec7c70575785729a6a9e6719a955e9c545bcab (diff)
Linux-libre 4.7.1-gnupck-4.7.1-gnu
Diffstat (limited to 'fs/aufs/f_op.c')
-rw-r--r--fs/aufs/f_op.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/aufs/f_op.c b/fs/aufs/f_op.c
index 504b76751..00475fb72 100644
--- a/fs/aufs/f_op.c
+++ b/fs/aufs/f_op.c
@@ -86,6 +86,7 @@ int aufs_release_nondir(struct inode *inode __maybe_unused, struct file *file)
{
struct au_finfo *finfo;
aufs_bindex_t bindex;
+ int delayed;
finfo = au_fi(file);
au_sphl_del(&finfo->fi_hlist,
@@ -94,7 +95,8 @@ int aufs_release_nondir(struct inode *inode __maybe_unused, struct file *file)
if (bindex >= 0)
au_set_h_fptr(file, bindex, NULL);
- au_finfo_fin(file);
+ delayed = (current->flags & PF_KTHREAD) || in_interrupt();
+ au_finfo_fin(file, delayed);
return 0;
}