pnfs: make pnfs_layout_process more robust
authorJeff Layton <jlayton@poochiereds.net>
Tue, 17 May 2016 16:28:48 +0000 (12:28 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 17 May 2016 19:48:13 +0000 (15:48 -0400)
commit1b3c6d07e29515064aca8a9f86efaea7da4da027
tree9bff3d864babadc95af859903a2b16fd888c0f36
parent183d9e7b112aaed0d19c16ffcf0f8c3a86dc71e0
pnfs: make pnfs_layout_process more robust

It can return NULL if layoutgets are blocked currently. Fix it to return
-EAGAIN in that case, so we can properly handle it in pnfs_update_layout.

Also, clean up and simplify the error handling -- eliminate "status" and
just use "lseg".

Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/pnfs.c