git: USB - Avoid unnecessary reprobes.

看板DFBSD_commit作者時間16年前 (2009/09/07 06:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 9670bddac1b917ea3a748ff3769bc8728f3fc2d8 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Sun Sep 6 14:53:51 2009 -0700 USB - Avoid unnecessary reprobes. * Do not unconditionally setdiskinfo when a removable DA* device is opened. It takes time for the kernel to reprobe the drive and this seriously messes up mountroot during kernel boot or attempts to access partitions in slices (instant open + access partition). If the size hasn't changed, do not call setdiskinfo again. * This is a bad hack. A better solution (detect actual device replacement) is needed. Summary of changes: sys/bus/cam/scsi/scsi_da.c | 23 +++++++++++++++-------- 1 files changed, 15 insertions(+), 8 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9670bddac1b917ea3a748ff3769bc8728f3fc2d8 -- DragonFly BSD source repository
文章代碼(AID): #1Af34Y_K (DFBSD_commit)