On Tue, Sep 3, 2019 at 6:57 AM Alex Lyakas <alex@xxxxxxxxxx> wrote: > This patch allows user-space to tell nfsd to release stateids of a particular local filesystem. > After that, it is possible to unmount the local filesystem. We recently ran into this exact same issue. A solution along these lines would be very useful to us as well. I am curious, though, is it feasible to release all state related to a filesystem immediately when it is unexported? It seems like that would be ideal from the perspective of the administrator of the server, but perhaps there are technical reasons why that isn't easy or even possible. -John