Project

General

Profile

Actions

Bug #13905

closed

zfs holds is quadratic

Added by Andrew Stormont almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Category:
zfs - Zettabyte File System
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:

Description

zfs holds calls zfs_for_each for each argument it is given which it turn iterates over the complete set of arguments. At first glance its use of zfs_for_each seems unnecessary but it must use it to properly support recursive lookups. The fix is to only pass only one argument at a time to zfs_for_each.


Related issues

Is duplicate of illumos gate - Bug #1869: "zfs holds" is O(n^2)DuplicateAndrew Stormont2011-12-08

Actions
Actions

Also available in: Atom PDF