Commit da784511 authored by Liam R. Howlett's avatar Liam R. Howlett Committed by Matthew Wilcox

Use mutex_lock_killable in vfs_readdir

Signed-off-by: default avatarLiam R. Howlett <howlett@gmail.com>
Acked-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarMatthew Wilcox <willy@linux.intel.com>
parent ad776537
......@@ -30,7 +30,10 @@ int vfs_readdir(struct file *file, filldir_t filler, void *buf)
if (res)
goto out;
mutex_lock(&inode->i_mutex);
res = mutex_lock_killable(&inode->i_mutex);
if (res)
goto out;
res = -ENOENT;
if (!IS_DEADDIR(inode)) {
res = file->f_op->readdir(file, buf, filler);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment