NFSv4: Replace lock_owner->ld_id with an ida based allocator
Again, We're unlikely to ever need more than 2^31 simultaneous lock owners, so let's replace the custom allocator. Now that there are no more users, we can also get rid of the custom allocator code. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
@@ -1093,6 +1093,7 @@ static struct nfs_server *nfs_alloc_server(void)
|
||||
}
|
||||
|
||||
ida_init(&server->openowner_id);
|
||||
ida_init(&server->lockowner_id);
|
||||
pnfs_init_server(server);
|
||||
|
||||
return server;
|
||||
@@ -1118,6 +1119,7 @@ void nfs_free_server(struct nfs_server *server)
|
||||
|
||||
nfs_put_client(server->nfs_client);
|
||||
|
||||
ida_destroy(&server->lockowner_id);
|
||||
ida_destroy(&server->openowner_id);
|
||||
nfs_free_iostats(server->io_stats);
|
||||
bdi_destroy(&server->backing_dev_info);
|
||||
|
Reference in New Issue
Block a user