Skip to content

Commit

Permalink
[PATCH] expand_fdtable(): remove pointless unlock+lock
Browse files Browse the repository at this point in the history
This unlock/lock on a super-unlikely path isn't worth the kernel text.

Cc: Vadim Lobanov <vlobanov@speakeasy.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Sep 29, 2006
1 parent 74d392a commit 327dcaa
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,7 @@ static int expand_fdtable(struct files_struct *files, int nr)
free_fdtable(cur_fdt);
} else {
/* Somebody else expanded, so undo our attempt */
spin_unlock(&files->file_lock);
__free_fdtable(new_fdt);
spin_lock(&files->file_lock);
}
return 1;
}
Expand Down

0 comments on commit 327dcaa

Please sign in to comment.