summaryrefslogtreecommitdiff
path: root/fs/eventpoll.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/eventpoll.c')
-rw-r--r--fs/eventpoll.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/eventpoll.c b/fs/eventpoll.c
index ab2157896d1d..047accde593d 100644
--- a/fs/eventpoll.c
+++ b/fs/eventpoll.c
@@ -9,7 +9,7 @@
*
* Davide Libenzi <davidel@xmailserver.org>
*
- * Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2013-2014, NVIDIA CORPORATION. All rights reserved.
*
*/
@@ -1290,7 +1290,9 @@ static int ep_insert(struct eventpoll *ep, struct epoll_event *event,
spin_lock(&tfile->f_lock);
list_add_tail(&epi->fllink, &tfile->f_ep_links);
spin_unlock(&tfile->f_lock);
- tfile->f_path.dentry->d_inode->i_private = get_thread_process(current);
+ if (tfile->f_path.dentry->d_inode->i_private == NULL)
+ tfile->f_path.dentry->d_inode->i_private =
+ get_thread_process(current);
/*
* Add the current item to the RB tree. All RB tree operations are