Эх сурвалжийг харах

NFS: Remove BKL usage from the write path

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Trond Myklebust 17 жил өмнө
parent
commit
b6a2e569e2
1 өөрчлөгдсөн 0 нэмэгдсэн , 2 устгасан
  1. 0 2
      fs/nfs/file.c

+ 0 - 2
fs/nfs/file.c

@@ -393,9 +393,7 @@ static int nfs_write_end(struct file *file, struct address_space *mapping,
 			zero_user_segment(page, pglen, PAGE_CACHE_SIZE);
 			zero_user_segment(page, pglen, PAGE_CACHE_SIZE);
 	}
 	}
 
 
-	lock_kernel();
 	status = nfs_updatepage(file, page, offset, copied);
 	status = nfs_updatepage(file, page, offset, copied);
-	unlock_kernel();
 
 
 	unlock_page(page);
 	unlock_page(page);
 	page_cache_release(page);
 	page_cache_release(page);