nfs: clean up rest of reqs when failing to add one
authorPeng Tao <tao.peng@primarydata.com>
Fri, 4 Dec 2015 17:59:56 +0000 (01:59 +0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 28 Dec 2015 19:32:37 +0000 (14:32 -0500)
commitc18b96a1b8629db8cf5ac9f8974ccb4abcc209ab
treefed9c43fab08ae9c06943a4370a58fc918776b50
parentd600ad1f2bdbf97c4818dcc85b174f72c90c21bd
nfs: clean up rest of reqs when failing to add one

If we fail to set up things before sending anything over wire,
we need to clean up the reqs that are still attached to 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