]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
nfs: check wait_on_bit_lock err in page_group_lock
authorWeston Andros Adamson <dros@primarydata.com>
Fri, 18 Jul 2014 00:42:15 +0000 (20:42 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 3 Aug 2014 21:05:24 +0000 (17:05 -0400)
commite7029206ff43f6cf7d6fcb741adb126f47200516
tree177e5c715690fdc397a2054c48ec61b9b5cbbea4
parentec25422c669d38f4e8a83da7f77950094349de48
nfs: check wait_on_bit_lock err in page_group_lock

Return errors from wait_on_bit_lock from nfs_page_group_lock.

Add a bool argument @wait to nfs_page_group_lock. If true, loop over
wait_on_bit_lock until it returns cleanly. If false, return the error
from wait_on_bit_lock.

Signed-off-by: Weston Andros Adamson <dros@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pagelist.c
fs/nfs/write.c
include/linux/nfs_page.h