zvol's DKIOCFREE holds zfsdev_state_lock too long
zfs - Zettabyte File System
When zvol processes a DKIOCFREE (e.g. SCSI UNMAP), it holds the zfsdev_state_lock (a global lock) across the call to dmu_free_long_range(), which can take a long time. We can safely drop this lock earlier.
Updated by Electric Monk almost 5 years ago
- % Done changed from 0 to 100
- Status changed from New to Closed
commit 574e2414ac6a50c9d6097c2e4a98eb9263f90c44 Author: George Wilson <email@example.com> Date: 2014-09-16T20:01:54.000Z 5148 zvol's DKIOCFREE holds zfsdev_state_lock too long Reviewed by: Matthew Ahrens <firstname.lastname@example.org> Reviewed by: Paul Dagnelie <email@example.com> Reviewed by: Sebastien Roy <firstname.lastname@example.org> Reviewed by: Josef 'Jeff' Sipek <email@example.com> Reviewed by: Dan McDonald <firstname.lastname@example.org> Approved by: Richard Lowe <email@example.com>