From: Tomas Richter Date: Wed, 18 Feb 2009 18:33:27 +0000 (-0500) Subject: Exportfs and rpc.mountd optimalization X-Git-Tag: nfs-utils-1-1-5~18 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=4cacc965afc4fb03a465ffcc6cb3078aeadc3818;hp=4cacc965afc4fb03a465ffcc6cb3078aeadc3818 Exportfs and rpc.mountd optimalization There were some problems with exportfs and rpc.mountd for long export lists - see https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=76643 I do optimalization as my bachelors thesis (Facuulty of informatics, Masaryk's university Brno, Czech Republic), under lead of Yenya Kasprzak. Both exportfs and rpc.mount build linked list of exports (shared functions in export.c). Every time they are inserting new export into list, they search for same export in list. I replaced linked list by hash table and functions export_add and export_lookup by functions hash_export_add and hash_export_lookup (export.c). Because some other functions required exportlist as linked list, hash table has some implementation modification im comparison with ordinary hash table. It also keeps exports in linked list and has pointer to head of the list. So there's no need of implementation function . Signed-off-by: Tomas Richter Signed-off-by: Steve Dickson ---