]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit378e4470ba64e4914c7ed5679fd6fb1770792bd7
tree47511b14902ff683a445e00cf4408b2054c8d547
parentc725a143c853ce524f32458032dbabc0616419f2
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