]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: centralize pgio error cleanup
authorPeng Tao <tao.peng@primarydata.com>
Fri, 4 Dec 2015 18:03:17 +0000 (02:03 +0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 28 Dec 2015 19:32:37 +0000 (14:32 -0500)
commit0a01e83d1b7948cf859bfff281e8771ebf3183c7
tree1cca8e446029d3acc42b0e0e858ae4b17c542617
parent15d3e65468a156f7d94cd10f632e9f6562b93e46
nfs: centralize pgio error cleanup

In case we fail during setting things up for read/write IO, set
pg_error in IO descriptor and do the cleanup in nfs_pageio_add_request,
where we clean up all pages that are still hanging around on the IO
descriptor.

Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pagelist.c
fs/nfs/pnfs.c