Project

General

Profile

Actions

Bug #10215

closed

lofiadm -la fails after lofiadm -a / lofiadm -d

Added by Alexander Pyhalov over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2019-01-11
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

The following test case fails:

# test=`lofiadm -a $(mktemp)`; lofiadm -d $test; test=`lofiadm -la $(mktemp)`; 
lofiadm: /dev/lofi/1p0 was not created: No such file or directory

The labeled lofi device names are allocated (created) in devfsadm framework and announced via sysevent mechanism and cached in kernel. The lofi will wait for the name updates if the cache has no entry yet, but when the unmap is performed, the cache flush can be delayed too. Therefore the cache flush must be initiated while we are performing unmap operation.

The fix is tested by running the line above, also by running just lofiadm -a/lofiadm -d.


Related issues

Related to illumos gate - Bug #11072: Deadlock in lofi after 11043ClosedAndy Fiddaman2019-05-28

Actions
Actions

Also available in: Atom PDF