From 327dcaadc0bc08ad081aa8e36b6ec7ad7aa45e30 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 29 Sep 2006 02:01:44 -0700 Subject: [PATCH] [PATCH] expand_fdtable(): remove pointless unlock+lock This unlock/lock on a super-unlikely path isn't worth the kernel text. Cc: Vadim Lobanov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- fs/file.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/file.c b/fs/file.c index 2a991ac8e5..8e81775c5d 100644 --- a/fs/file.c +++ b/fs/file.c @@ -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; } -- 2.39.5