OS-3975: dnlc_reverse_lookup() is unsafe at any speed

Details

Issue Type:Bug
Priority:4 - Normal
Status:Resolved
Created at:2015-03-02T21:51:41.000Z
Updated at:2015-03-02T21:59:52.000Z

People

Created by:Former user
Reported by:Former user
Assigned to:Former user

Resolution

Fixed: A fix for this issue is checked into the tree and tested.
(Resolution Date: 2015-03-02T21:59:52.000Z)

Labels

lxbrand

Description

Doing a reverse "lookup" in the DNLC (in air quotes because it's a scan, not a lookup) is unsafe at any speed -- there shouldn't be an interface to do it, and consumers of it should simply assume that dnlc_reverse_lookup() returns nothing. Doing this resolves acute performance issues that we've seen in production in getcwd(), reading LX pmaps and other domains.

Comments

Comment by Former user
Created at 2015-03-02T21:53:06.000Z

illumos-joyent commit 48ddf20 (branch master, by Bryan Cantrill)

OS-3975 dnlc_reverse_lookup() is unsafe at any speed