Commit b6a2e569 authored by Trond Myklebust's avatar Trond Myklebust

NFS: Remove BKL usage from the write path

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 4d80f2ec
...@@ -393,9 +393,7 @@ static int nfs_write_end(struct file *file, struct address_space *mapping, ...@@ -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);
......
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