Repository navigation
Commit 7c7cb07
nfsd: register pernet ops last, unregister first
[ Upstream commit bd5ae92 ]
These pernet operations may depend on stuff set up or torn down in the
module init/exit functions. And they may be called at any time in
between. So it makes more sense for them to be the last to be
registered in the init function, and the first to be unregistered in the
exit function.
In particular, without this, the drc slab is being destroyed before all
the per-net drcs are shut down, resulting in an "Objects remaining in
nfsd_drc on __kmem_cache_shutdown()" warning in exit_nfsd.
Reported-by: Zhi Li <yieli@redhat.com>
Fixes: 3ba7583 "nfsd4: drc containerization"
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent b0363fa commit 7c7cb07
1 file changed
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1522 | 1522 | | |
1523 | 1523 | | |
1524 | 1524 | | |
1525 | | - | |
1526 | | - | |
1527 | | - | |
1528 | 1525 | | |
1529 | 1526 | | |
1530 | | - | |
| 1527 | + | |
1531 | 1528 | | |
1532 | 1529 | | |
1533 | 1530 | | |
| |||
1544 | 1541 | | |
1545 | 1542 | | |
1546 | 1543 | | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
1547 | 1547 | | |
1548 | 1548 | | |
1549 | 1549 | | |
| 1550 | + | |
| 1551 | + | |
1550 | 1552 | | |
1551 | 1553 | | |
1552 | 1554 | | |
| |||
1559 | 1561 | | |
1560 | 1562 | | |
1561 | 1563 | | |
1562 | | - | |
1563 | | - | |
1564 | 1564 | | |
1565 | 1565 | | |
1566 | 1566 | | |
1567 | 1567 | | |
1568 | 1568 | | |
| 1569 | + | |
1569 | 1570 | | |
1570 | 1571 | | |
1571 | 1572 | | |
| |||
1575 | 1576 | | |
1576 | 1577 | | |
1577 | 1578 | | |
1578 | | - | |
1579 | 1579 | | |
1580 | 1580 | | |
1581 | 1581 | | |
| |||
0 commit comments