projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cachefiles: narrow the scope of flushed requests when releasing fd
[platform/kernel/linux-starfive.git]
/
fs
/
cachefiles
/
ondemand.c
diff --git
a/fs/cachefiles/ondemand.c
b/fs/cachefiles/ondemand.c
index
a41ae6e
..
1fee702
100644
(file)
--- a/
fs/cachefiles/ondemand.c
+++ b/
fs/cachefiles/ondemand.c
@@
-21,7
+21,8
@@
static int cachefiles_ondemand_fd_release(struct inode *inode,
* anon_fd.
*/
xas_for_each(&xas, req, ULONG_MAX) {
- if (req->msg.opcode == CACHEFILES_OP_READ) {
+ if (req->msg.object_id == object_id &&
+ req->msg.opcode == CACHEFILES_OP_READ) {
req->error = -EIO;
complete(&req->done);
xas_store(&xas, NULL);