Mercurial > illumos > illumos-gate
changeset 13040:2057b0a7fa55
6974471 mpt_sas needs to turn off ok2rm (blue) led when an unconfigured disk drive is removed from system
author | Yong-Feng Du <Yongfeng.Du@Sun.COM> |
---|---|
date | Fri, 06 Aug 2010 13:29:11 +0800 |
parents | 41d7b7a02c5d |
children | 2ba2eec82e2a |
files | usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c Fri Aug 06 16:16:06 2010 +0530 +++ b/usr/src/uts/common/io/scsi/adapters/mpt_sas/mptsas.c Fri Aug 06 13:29:11 2010 +0800 @@ -6450,6 +6450,10 @@ } mutex_enter(&mpt->m_mutex); + if (mptsas_set_led_status(mpt, ptgt, 0) != DDI_SUCCESS) { + NDBG14(("mptsas: clear LED for tgt %x failed", + ptgt->m_slot_num)); + } if (rval == DDI_SUCCESS) { mptsas_tgt_free(&mpt->m_active->m_tgttbl, ptgt->m_sas_wwn, ptgt->m_phymask); @@ -16079,6 +16083,12 @@ bzero(&req, sizeof (req)); bzero(&rep, sizeof (rep)); + /* Do nothing for RAID volumes */ + if (ptgt->m_phymask == 0) { + NDBG14(("mptsas_send_sep: Skip RAID volumes")); + return (DDI_FAILURE); + } + req.Function = MPI2_FUNCTION_SCSI_ENCLOSURE_PROCESSOR; req.Action = act; req.Flags = MPI2_SEP_REQ_FLAGS_ENCLOSURE_SLOT_ADDRESS;