diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-09-11 04:34:46 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-09-11 04:34:46 -0300 |
commit | 863981e96738983919de841ec669e157e6bdaeb0 (patch) | |
tree | d6d89a12e7eb8017837c057935a2271290907f76 /fs/aufs/f_op.c | |
parent | 8dec7c70575785729a6a9e6719a955e9c545bcab (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.c | 4 |
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; } |