git: DragonFly_RELEASE_2_4 CAM - Fix missing SIM lock in cam_per

看板DFBSD_commit作者時間16年前 (2009/10/01 07:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 851c57bb2d6b6b44dd70627c4ea8a798d32d80f3 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Wed Sep 30 15:26:05 2009 -0700 CAM - Fix missing SIM lock in cam_periph_release() * When releasing the last reference on a CAM peripheral which has been marked invalid, the peripheral is then freed. Freeing the peripheral requires the SIM lock. Go through necessary tribulations to acquire the SIM lock. The lock order is important (SIM lock first, XPT lock second), and the SIM lock may or may not already be held by the thread. * The bug could cause a crash after burning a CD as the CD becomes invalid after the burn completes in order to reload its state. Summary of changes: sys/bus/cam/cam_periph.c | 52 ++++++++++++++++++++++++++++++++++++++-------- sys/bus/cam/cam_sim.c | 24 +++++++++++++++++++++ sys/bus/cam/cam_sim.h | 8 +++++- 3 files changed, 73 insertions(+), 11 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/851c57bb2d6b6b44dd70627c4ea8a798d32d80f3 -- DragonFly BSD source repository
文章代碼(AID): #1Am-Cqyo (DFBSD_commit)