lofi: lofi_close() can not tear down lofi instance
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.
Updated by Electric Monk 12 months ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit 3984682357d7bf0332a2f7d5406e349229f168e2 Author: Toomas Soome <firstname.lastname@example.org> Date: 2021-05-29T22:12:42.000Z 13831 lofi: lofi_close() can not tear down lofi instance Reviewed by: Andy Fiddaman <email@example.com> Reviewed by: Gordon Ross <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>