Project

General

Profile

Actions

Bug #13831

closed

lofi: lofi_close() can not tear down lofi instance

Added by Toomas Soome about 1 year ago. Updated 12 months ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

While performing forced unmap with lofiadm -f -d .., the device unmapping will be performed on last close. However, we can not offline lofi instance, while its lofi_close() is still running. Create task in separate thread to perform device offlining.

Testing done: add mapping; open it with mdb; then lofiadm -d /dev/lofi/1 -f; and exit mdb. After this, verify if we can still create the mapping with the same instance id.

Actions #1

Updated by Electric Monk about 1 year ago

  • Gerrit CR set to 1521
Actions #2

Updated by Electric Monk 12 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit 3984682357d7bf0332a2f7d5406e349229f168e2

commit  3984682357d7bf0332a2f7d5406e349229f168e2
Author: Toomas Soome <tsoome@me.com>
Date:   2021-05-29T22:12:42.000Z

    13831 lofi: lofi_close() can not tear down lofi instance
    Reviewed by: Andy Fiddaman <andy@omnios.org>
    Reviewed by: Gordon Ross <gordon.w.ross@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Actions

Also available in: Atom PDF