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 over 5 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 1d3f896f5469c69c1339890ec3d68e9feddb0343 Author: Arne Jansen <email@example.com> Date: 2015-06-20T08:04:51.000Z 5981 Deadlock in dmu_objset_find_dp Reviewed by: Matthew Ahrens <firstname.lastname@example.org> Reviewed by: Dan McDonald <email@example.com> Approved by: Robert Mustacchi <firstname.lastname@example.org>