]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbc49b876160b32d3357b1b5ec7b10fad5520d9c6
tree9bff3d864babadc95af859903a2b16fd888c0f36
parent7f50c1a5fe2970950df6c0a765ef33af0ebacc1d
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