commit | 681370f4b00af0fcc65bbfb9f82de526ab7ceb0a | [log] [tgz] |
---|---|---|
author | J. Bruce Fields <bfields@redhat.com> | Tue Jun 23 16:00:33 2020 -0400 |
committer | J. Bruce Fields <bfields@redhat.com> | Mon Jun 29 14:48:02 2020 -0400 |
tree | f9b3be891505d9420ca222fc14452bb7750315f5 | |
parent | 22cf8419f1319ff87ec759d0ebdff4cbafaee832 [diff] |
nfsd4: fix nfsdfs reference count loop We don't drop the reference on the nfsdfs filesystem with mntput(nn->nfsd_mnt) until nfsd_exit_net(), but that won't be called until the nfsd module's unloaded, and we can't unload the module as long as there's a reference on nfsdfs. So this prevents module unloading. Fixes: 2c830dd7209b ("nfsd: persist nfsd filesystem across mounts") Reported-and-Tested-by: Luo Xiaogang <lxgrxd@163.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>