DragonFly-2.3.1.128.gd1f80 master sys/bus/cam cam_ccb.h cam_queu

看板DFBSD_commit作者時間16年前 (2009/06/05 02:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit d1f800ab0655d7064a4756718e01909e9a6f1374 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Tue Jun 2 20:36:27 2009 -0700 CAM fixes - queue empty tests, sim refcount, add XPORT_AHCI enum. * CAMQ_GET_HEAD assumes the head entry in the devq array is NULL to indicate an empty queue. Fix allocations and removal code to ensure that no bogus pointers are left in the array, cleaning it up and fixing a bug where CAMQ_GET_HEAD() could return non-NULL even when the queue was empty. This fixes numerous reports on detachment of non-empty device queues that are, in fact, empty, and also fixes a memory leak. * xpt_bus_register() bumps the sim's refcount, but xpt_bus_deregister() did not properly release it. This fixes a memory leak. * Add XPORT_AHCI to the cam_xport enum for AHCI attachments. Summary of changes: sys/bus/cam/cam_ccb.h | 1 + sys/bus/cam/cam_queue.c | 10 ++++++++-- sys/bus/cam/cam_xpt.c | 9 +++++++-- 3 files changed, 16 insertions(+), 4 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d1f800ab0655d7064a4756718e01909e9a6f1374 -- DragonFly BSD source repository
文章代碼(AID): #1AA1Ci00 (DFBSD_commit)