pNFS/flexfiles: Don't tie up all the rpciod threads in resends
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 18 Jun 2018 23:07:24 +0000 (19:07 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 19 Jun 2018 13:25:27 +0000 (09:25 -0400)
commit42f86b44a4d356edba626171dfe0be061fc695af
tree664b44aa67881d0ad2371d9d281babf45f69838c
parent0dae72d581dfe795aedaf5523c1faeb18958b1a7
pNFS/flexfiles: Don't tie up all the rpciod threads in resends

We do not want to have rpciod threads perform recursive calls into the
RPC layer since that can deadlock. In particular, having to wait for
a layoutget can be nasty... We want rather to defer scheduling those
retries until we're in the rpc_release() callback, since that is
called from the nfsiod workqueue.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/flexfilelayout/flexfilelayout.c
include/linux/nfs_xdr.h