projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kernel/io_uring: cancel io_uring before task works
[linux-2.6-microblaze.git]
/
fs
/
9p
/
vfs_dir.c
diff --git
a/fs/9p/vfs_dir.c
b/fs/9p/vfs_dir.c
index
674d22b
..
b6a5a0b
100644
(file)
--- a/
fs/9p/vfs_dir.c
+++ b/
fs/9p/vfs_dir.c
@@
-210,8
+210,12
@@
int v9fs_dir_release(struct inode *inode, struct file *filp)
fid = filp->private_data;
p9_debug(P9_DEBUG_VFS, "inode: %p filp: %p fid: %d\n",
inode, filp, fid ? fid->fid : -1);
fid = filp->private_data;
p9_debug(P9_DEBUG_VFS, "inode: %p filp: %p fid: %d\n",
inode, filp, fid ? fid->fid : -1);
- if (fid)
+ if (fid) {
+ spin_lock(&inode->i_lock);
+ hlist_del(&fid->ilist);
+ spin_unlock(&inode->i_lock);
p9_client_clunk(fid);
p9_client_clunk(fid);
+ }
return 0;
}
return 0;
}