Bug #5269: zpool import slow
Deadlock in dmu_objset_find_dp
When dmu_objset_find_dp gets called with a read lock held, it fans out the work to the task queue. Each task in turn acquires its own read lock before calling the callback. If during this process anyone tries to a acquire a write lock, it will stall all read lock requests.Thus the tasks will never finish, the read lock of the caller will never get freed and the write lock never acquired. deadlock.
Updated by Electric Monk almost 5 years ago
- % Done changed from 0 to 100
- Status changed from New to Closed
commit 1d3f896f5469c69c1339890ec3d68e9feddb0343 Author: Arne Jansen <firstname.lastname@example.org> Date: 2015-06-20T08:04:51.000Z 5981 Deadlock in dmu_objset_find_dp Reviewed by: Matthew Ahrens <email@example.com> Reviewed by: Dan McDonald <firstname.lastname@example.org> Approved by: Robert Mustacchi <email@example.com>