NFS: Ensure that the read code cleans up properly when rpc_run_task() fails
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 15 Apr 2008 20:33:58 +0000 (16:33 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 19 Apr 2008 20:53:01 +0000 (16:53 -0400)
commitfdd1e74c89fe39259a29c494209abad63ff76f82
tree7ec3708b7b7badeb20f705cf865afbb9c63b5406
parent73e3302f60c0e11a0db0b34b903f591139c4f937
NFS: Ensure that the read code cleans up properly when rpc_run_task() fails

In the case of readpage() we need to ensure that the pages get unlocked,
and that the error is flagged.

In the case of O_DIRECT, we need to ensure that the pages are all released.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/direct.c
fs/nfs/read.c