Print this page
10114 fmev_proxy_cb() doesn't need inval checks

*** 22,31 **** --- 22,35 ---- /* * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. */ /* + * Copyright (c) 2018, Joyent, Inc. + */ + + /* * FMA event subscription interfaces - subscribe to FMA protocol * from outside the fault manager. */ #include <sys/types.h>
*** 203,213 **** /* * Our door service function. We return 0 regardless so that the kernel * does not keep either retrying (EAGAIN) or bleat to cmn_err. */ - uint64_t fmev_proxy_cb_inval; uint64_t fmev_proxy_cb_enomem; int fmev_proxy_cb(sysevent_t *sep, void *arg) { --- 207,216 ----
*** 215,229 **** fmev_shdl_impl_t *ihdl = sip->si_ihdl; nvlist_t *nvl; char *class; fmev_t ev; - if (sip == NULL || sip->si_cb == NULL) { - fmev_proxy_cb_inval++; - return (0); - } - if ((ev = fmev_sysev2fmev(IHDL2HDL(ihdl), sep, &class, &nvl)) == NULL) { fmev_proxy_cb_enomem++; return (0); } --- 218,227 ----