summaryrefslogtreecommitdiff
path: root/libnetfs
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2021-05-26 17:28:18 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-08-10 22:13:26 +0200
commitf10886297e77091b7bc313766cf7c8bac97d4291 (patch)
treef8479886a2a2b0882ab322a1dd4cf9e463b21f18 /libnetfs
parentb24812dce9062559ab2b9a3d07505d9985ccc83a (diff)
libdiskfs, libnetfs: Disable broken code
This logic is obviously broken, let's disable it for now.
Diffstat (limited to 'libnetfs')
-rw-r--r--libnetfs/dead-name.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libnetfs/dead-name.c b/libnetfs/dead-name.c
index 6f2d78d6..f34ddbf7 100644
--- a/libnetfs/dead-name.c
+++ b/libnetfs/dead-name.c
@@ -23,6 +23,10 @@
void
ports_dead_name (void *notify, mach_port_t dead_name)
{
+#if 0
+ /* FIXME: This makes no sense, the dead name could be np->sockaddr, but not
+ the protid; it's pointless to look it up this way. It also leaks a
+ reference. */
struct protid *pi = ports_lookup_port (netfs_port_bucket, dead_name,
netfs_protid_class);
struct node *np;
@@ -40,6 +44,7 @@ ports_dead_name (void *notify, mach_port_t dead_name)
else
pthread_mutex_unlock (&np->lock);
}
+#endif
fshelp_remove_active_translator (dead_name);