nfs: chain calls to pg_test
authorWeston Andros Adamson <dros@primarydata.com>
Thu, 15 May 2014 15:56:51 +0000 (11:56 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 29 May 2014 15:11:47 +0000 (11:11 -0400)
commit0f9c429eca07aca2764ccd751e2b48ba5397b936
tree47511b14902ff683a445e00cf4408b2054c8d547
parent6094f83864c1d1296566a282cba05ba613f151ee
nfs: chain calls to pg_test

Now that pg_test can change the size of the request (by returning a non-zero
size smaller than the request), pg_test functions that call other
pg_test functions must return the minimum of the result - or 0 if any fail.

Also clean up the logic of some pg_test functions so that all checks are
for contitions where coalescing is not possible.

Signed-off-by: Weston Andros Adamson <dros@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4filelayout.c
fs/nfs/objlayout/objio_osd.c
fs/nfs/pnfs.c