mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
restore killability of old mutex_lock_killable(&inode->i_mutex) users
The ones that are taking it exclusive, that is... Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
887bddfa90
commit
002354112f
3 changed files with 14 additions and 20 deletions
12
fs/readdir.c
12
fs/readdir.c
|
|
@ -35,13 +35,13 @@ int iterate_dir(struct file *file, struct dir_context *ctx)
|
|||
if (res)
|
||||
goto out;
|
||||
|
||||
if (shared)
|
||||
if (shared) {
|
||||
inode_lock_shared(inode);
|
||||
else
|
||||
inode_lock(inode);
|
||||
// res = mutex_lock_killable(&inode->i_mutex);
|
||||
// if (res)
|
||||
// goto out;
|
||||
} else {
|
||||
res = down_write_killable(&inode->i_rwsem);
|
||||
if (res)
|
||||
goto out;
|
||||
}
|
||||
|
||||
res = -ENOENT;
|
||||
if (!IS_DEADDIR(inode)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue