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 over 5 years ago
- % Done changed from 0 to 100
- Status changed from New to Closed
commit 574e2414ac6a50c9d6097c2e4a98eb9263f90c44 Author: George Wilson <firstname.lastname@example.org> Date: 2014-09-16T20:01:54.000Z 5148 zvol's DKIOCFREE holds zfsdev_state_lock too long Reviewed by: Matthew Ahrens <email@example.com> Reviewed by: Paul Dagnelie <firstname.lastname@example.org> Reviewed by: Sebastien Roy <email@example.com> Reviewed by: Josef 'Jeff' Sipek <firstname.lastname@example.org> Reviewed by: Dan McDonald <email@example.com> Approved by: Richard Lowe <firstname.lastname@example.org>