nfs/flexfiles: send layoutreturn before freeing lseg
authorPeng Tao <tao.peng@primarydata.com>
Mon, 20 Oct 2014 06:44:38 +0000 (14:44 +0800)
committerTom Haynes <loghyr@primarydata.com>
Tue, 3 Feb 2015 19:06:50 +0000 (11:06 -0800)
Otherwise we'll lose error tracking information when
encoding layoutreturn.

pnfs_put_lseg may be called from rpc callbacks. So we should not
call pnfs_send_layoutreturn directly because it can deadlock in
the rpc layer.

Signed-off-by: Peng Tao <tao.peng@primarydata.com>
Signed-off-by: Tom Haynes <loghyr@primarydata.com>
fs/nfs/pnfs.c

diff --cc fs/nfs/pnfs.c
Simple merge