]> 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)
commit244672e2ee2756edfda0fb8dcbae450ec948cd01
tree47511b14902ff683a445e00cf4408b2054c8d547
parentca19b58bd2977d7850cbb72d5dc56f2c647c36c5
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