/drivers/staging/lustre/lnet/lnet/ |
D | lib-move.c | 57 LASSERT(the_lnet.ln_init); in lnet_fail_nid() 184 LASSERT(ndiov > 0); in lnet_copy_iov2iov() 189 LASSERT(ndiov > 0); in lnet_copy_iov2iov() 193 LASSERT(nsiov > 0); in lnet_copy_iov2iov() 198 LASSERT(nsiov > 0); in lnet_copy_iov2iov() 202 LASSERT(ndiov > 0); in lnet_copy_iov2iov() 203 LASSERT(nsiov > 0); in lnet_copy_iov2iov() 245 LASSERT(src_niov > 0); in lnet_extract_iov() 250 LASSERT(src_niov > 0); in lnet_extract_iov() 255 LASSERT(src_niov > 0); in lnet_extract_iov() [all …]
|
D | lib-msg.c | 66 LASSERT(!msg->msg_routing); in lnet_build_msg_event() 124 LASSERT(msg->msg_type == LNET_MSG_GET); in lnet_build_msg_event() 143 LASSERT(!msg->msg_tx_committed); in lnet_msg_commit() 146 LASSERT(!msg->msg_receiving); in lnet_msg_commit() 151 LASSERT(msg->msg_onactivelist); in lnet_msg_commit() 155 LASSERT(!msg->msg_sending); in lnet_msg_commit() 160 LASSERT(!msg->msg_onactivelist); in lnet_msg_commit() 175 LASSERT(msg->msg_tx_committed); in lnet_msg_decommit_tx() 182 LASSERT(msg->msg_routing); in lnet_msg_decommit_tx() 183 LASSERT(msg->msg_rx_committed); in lnet_msg_decommit_tx() [all …]
|
D | api-ni.c | 107 LASSERT(the_lnet.ln_remote_nets_hash == NULL); in lnet_create_remote_nets_table() 108 LASSERT(the_lnet.ln_remote_nets_hbits > 0); in lnet_create_remote_nets_table() 130 LASSERT(list_empty(&the_lnet.ln_remote_nets_hash[i])); in lnet_destroy_remote_nets_table() 287 LASSERT(the_lnet.ln_init); in lnet_register_lnd() 288 LASSERT(libcfs_isknown_lnd(lnd->lnd_type)); in lnet_register_lnd() 289 LASSERT(lnet_find_lnd_by_type(lnd->lnd_type) == NULL); in lnet_register_lnd() 305 LASSERT(the_lnet.ln_init); in lnet_unregister_lnd() 306 LASSERT(lnet_find_lnd_by_type(lnd->lnd_type) == lnd); in lnet_unregister_lnd() 307 LASSERT(lnd->lnd_refcount == 0); in lnet_unregister_lnd() 430 LASSERT(rec->rec_type == 0); in lnet_res_container_setup() [all …]
|
/drivers/staging/lustre/lustre/ptlrpc/ |
D | sec.c | 70 LASSERT(policy->sp_name); in sptlrpc_register_policy() 71 LASSERT(policy->sp_cops); in sptlrpc_register_policy() 72 LASSERT(policy->sp_sops); in sptlrpc_register_policy() 94 LASSERT(number < SPTLRPC_POLICY_MAX); in sptlrpc_unregister_policy() 103 LASSERT(policies[number] == policy); in sptlrpc_unregister_policy() 258 LASSERT(sec); in get_my_ctx() 259 LASSERT(sec->ps_policy->sp_cops->lookup_ctx); in get_my_ctx() 289 LASSERT(sec); in sptlrpc_cli_ctx_put() 358 LASSERT(!req->rq_cli_ctx); in sptlrpc_req_get_ctx() 359 LASSERT(imp); in sptlrpc_req_get_ctx() [all …]
|
D | niobuf.c | 58 LASSERT(portal != 0); in ptl_send_buf() 59 LASSERT(conn != NULL); in ptl_send_buf() 78 LASSERT(rc == -ENOMEM); in ptl_send_buf() 129 LASSERT(desc->bd_nob > 0); in ptlrpc_register_bulk() 130 LASSERT(desc->bd_md_count == 0); in ptlrpc_register_bulk() 131 LASSERT(desc->bd_md_max_brw <= PTLRPC_BULK_OPS_COUNT); in ptlrpc_register_bulk() 132 LASSERT(desc->bd_iov_count <= PTLRPC_MAX_BRW_PAGES); in ptlrpc_register_bulk() 133 LASSERT(desc->bd_req != NULL); in ptlrpc_register_bulk() 134 LASSERT(desc->bd_type == BULK_PUT_SINK || in ptlrpc_register_bulk() 141 LASSERT(desc->bd_nob_transferred == 0); in ptlrpc_register_bulk() [all …]
|
D | sec_bulk.c | 178 LASSERT(npages > 0); in enc_pools_release_free_pages() 179 LASSERT(npages <= page_pools.epp_free_pages); in enc_pools_release_free_pages() 180 LASSERT(page_pools.epp_free_pages <= page_pools.epp_total_pages); in enc_pools_release_free_pages() 194 LASSERT(page_pools.epp_pools[p_idx]); in enc_pools_release_free_pages() 197 LASSERT(page_pools.epp_pools[p_idx]); in enc_pools_release_free_pages() 198 LASSERT(page_pools.epp_pools[p_idx][g_idx] != NULL); in enc_pools_release_free_pages() 211 LASSERT(page_pools.epp_pools[p_idx_max2]); in enc_pools_release_free_pages() 235 LASSERT(page_pools.epp_idle_idx <= IDLE_IDX_MAX); in enc_pools_shrink_count() 270 LASSERT(page_pools.epp_idle_idx <= IDLE_IDX_MAX); in enc_pools_shrink_scan() 307 LASSERT(page_pools.epp_waitqlen >= 0); in enc_pools_wakeup() [all …]
|
D | nrs.c | 66 LASSERT(policy->pol_ref == 0); in nrs_policy_fini() 67 LASSERT(policy->pol_req_queued == 0); in nrs_policy_fini() 102 LASSERT(list_empty(&policy->pol_list_queued)); in nrs_policy_stop0() 103 LASSERT(policy->pol_req_queued == 0 && in nrs_policy_stop0() 135 LASSERT(nrs->nrs_policy_fallback == policy); in nrs_policy_stop_locked() 162 LASSERT(tmp->pol_state == NRS_POL_STATE_STARTED); in nrs_policy_stop_primary() 200 LASSERT(policy->pol_state != NRS_POL_STATE_STARTING); in nrs_policy_start_locked() 223 LASSERT(nrs->nrs_policy_fallback == NULL); in nrs_policy_start_locked() 310 LASSERT(policy->pol_ref > 0); in nrs_policy_put_locked() 398 LASSERT(tmp != NULL); in nrs_resource_get() [all …]
|
D | events.c | 59 LASSERT(ev->type == LNET_EVENT_SEND || in request_out_callback() 61 LASSERT(ev->unlinked); in request_out_callback() 94 LASSERT(ev->type == LNET_EVENT_PUT || ev->type == LNET_EVENT_UNLINK); in reply_in_callback() 95 LASSERT(ev->md.start == req->rq_repbuf); in reply_in_callback() 96 LASSERT(ev->offset + ev->mlength <= req->rq_repbuf_len); in reply_in_callback() 99 LASSERT((ev->md.options & LNET_MD_MANAGE_REMOTE) != 0); in reply_in_callback() 112 LASSERT(ev->unlinked); in reply_in_callback() 179 LASSERT((desc->bd_type == BULK_PUT_SINK && in client_bulk_callback() 184 LASSERT(ev->unlinked); in client_bulk_callback() 199 LASSERT(desc->bd_md_count > 0); in client_bulk_callback() [all …]
|
D | sec_plain.c | 296 LASSERT(req->rq_pack_bulk); in plain_cli_wrap_bulk() 297 LASSERT(req->rq_reqbuf->lm_bufcount == PLAIN_PACK_SEGMENTS); in plain_cli_wrap_bulk() 340 LASSERT(req->rq_pack_bulk); in plain_cli_unwrap_bulk() 341 LASSERT(req->rq_reqbuf->lm_bufcount == PLAIN_PACK_SEGMENTS); in plain_cli_unwrap_bulk() 342 LASSERT(req->rq_repdata->lm_bufcount == PLAIN_PACK_SEGMENTS); in plain_cli_unwrap_bulk() 418 LASSERT(sec->ps_policy == &plain_policy); in plain_destroy_sec() 419 LASSERT(sec->ps_import); in plain_destroy_sec() 420 LASSERT(atomic_read(&sec->ps_refcount) == 0); in plain_destroy_sec() 421 LASSERT(atomic_read(&sec->ps_nctx) == 0); in plain_destroy_sec() 422 LASSERT(plsec->pls_ctx == NULL); in plain_destroy_sec() [all …]
|
D | sec_null.c | 99 LASSERT(req->rq_repdata); in null_ctx_verify() 123 LASSERT(SPTLRPC_FLVR_POLICY(sf->sf_rpc) == SPTLRPC_POLICY_NULL); in null_create_sec() 135 LASSERT(sec == &null_sec); in null_destroy_sec() 163 LASSERT(!req->rq_pool); in null_alloc_reqbuf() 170 LASSERT(req->rq_pool); in null_alloc_reqbuf() 171 LASSERT(req->rq_reqbuf_len >= msgsize); in null_alloc_reqbuf() 219 LASSERT(req->rq_repbuf); in null_free_repbuf() 235 LASSERT(req->rq_reqbuf); in null_enlarge_reqbuf() 236 LASSERT(req->rq_reqbuf == req->rq_reqmsg); in null_enlarge_reqbuf() 237 LASSERT(req->rq_reqbuf_len >= req->rq_reqlen); in null_enlarge_reqbuf() [all …]
|
/drivers/staging/lustre/lustre/libcfs/ |
D | workitem.c | 125 LASSERT(!in_interrupt()); /* because we use plain spinlock */ in cfs_wi_exit() 126 LASSERT(!sched->ws_stopping); in cfs_wi_exit() 130 LASSERT(wi->wi_running); in cfs_wi_exit() 132 LASSERT(!list_empty(&wi->wi_list)); in cfs_wi_exit() 135 LASSERT(sched->ws_nscheduled > 0); in cfs_wi_exit() 139 LASSERT(list_empty(&wi->wi_list)); in cfs_wi_exit() 156 LASSERT(!in_interrupt()); /* because we use plain spinlock */ in cfs_wi_deschedule() 157 LASSERT(!sched->ws_stopping); in cfs_wi_deschedule() 169 LASSERT(!list_empty(&wi->wi_list)); in cfs_wi_deschedule() 172 LASSERT(sched->ws_nscheduled > 0); in cfs_wi_deschedule() [all …]
|
/drivers/staging/lustre/lustre/ldlm/ |
D | ldlm_extent.c | 103 LASSERT(!l->l_tree_node); in ldlm_interval_attach() 104 LASSERT(l->l_resource->lr_type == LDLM_EXTENT); in ldlm_interval_attach() 114 LASSERT(lock->l_resource->lr_type == LDLM_EXTENT); in ldlm_interval_alloc() 127 LASSERT(list_empty(&node->li_group)); in ldlm_interval_free() 128 LASSERT(!interval_is_intree(&node->li_node)); in ldlm_interval_free() 140 LASSERT(!list_empty(&n->li_group)); in ldlm_interval_detach() 151 LASSERT(mode != 0); in lock_mode_to_index() 152 LASSERT(IS_PO2(mode)); in lock_mode_to_index() 155 LASSERT(index < LCK_MODE_NUM); in lock_mode_to_index() 168 LASSERT(lock->l_granted_mode == lock->l_req_mode); in ldlm_extent_add_lock() [all …]
|
/drivers/staging/lustre/lustre/llite/ |
D | vvp_page.c | 59 LASSERT(vmpage != NULL); in vvp_page_fini_common() 73 LASSERT((struct cl_page *)vmpage->private != slice->cpl_page); in vvp_page_fini() 84 LASSERT(vmpage != NULL); in vvp_page_own() 108 LASSERT(vmpage != NULL); in vvp_page_assume() 109 LASSERT(PageLocked(vmpage)); in vvp_page_assume() 119 LASSERT(vmpage != NULL); in vvp_page_unassume() 120 LASSERT(PageLocked(vmpage)); in vvp_page_unassume() 128 LASSERT(vmpage != NULL); in vvp_page_disown() 129 LASSERT(PageLocked(vmpage)); in vvp_page_disown() 142 LASSERT(vmpage != NULL); in vvp_page_discard() [all …]
|
/drivers/staging/lustre/lnet/selftest/ |
D | framework.c | 126 LASSERT(id <= SRPC_SERVICE_MAX_ID); in sfw_find_test_case() 127 LASSERT(id > SRPC_FRAMEWORK_SERVICE_MAX_ID); in sfw_find_test_case() 165 LASSERT(!sfw_data.fw_shuttingdown); in sfw_add_session_timer() 170 LASSERT(!sn->sn_timer_active); in sfw_add_session_timer() 186 LASSERT(sn->sn_timeout != 0); in sfw_del_session_timer() 208 LASSERT(!sn->sn_timer_active); in sfw_deactivate_session() 247 LASSERT(sn->sn_timer_active); in sfw_session_expired() 248 LASSERT(sn == sfw_data.fw_session); in sfw_session_expired() 306 LASSERT(rpc->crpc_bulk.bk_niov == 0); in sfw_client_rpc_fini() 307 LASSERT(list_empty(&rpc->crpc_list)); in sfw_client_rpc_fini() [all …]
|
D | rpc.c | 95 LASSERT(nob > 0); in srpc_add_bulk_page() 96 LASSERT(i >= 0 && i < bk->bk_niov); in srpc_add_bulk_page() 110 LASSERT(bk != NULL); in srpc_free_bulk() 130 LASSERT(bulk_npg > 0 && bulk_npg <= LNET_MAX_IOV); in srpc_alloc_bulk() 223 LASSERT(list_empty(&scd->scd_rpc_active)); in srpc_service_fini() 313 LASSERT(0 <= id && id <= SRPC_SERVICE_MAX_ID); in srpc_add_service() 320 LASSERT(srpc_data.rpc_state == SRPC_STATE_RUNNING); in srpc_add_service() 368 LASSERT(rc == -ENOMEM); in srpc_post_passive_rdma() 382 LASSERT(rc == -ENOMEM); in srpc_post_passive_rdma() 385 LASSERT(rc == 0); in srpc_post_passive_rdma() [all …]
|
D | timer.c | 76 LASSERT(stt_data.stt_nthreads > 0); in stt_add_timer() 77 LASSERT(!stt_data.stt_shuttingdown); in stt_add_timer() 78 LASSERT(timer->stt_func != NULL); in stt_add_timer() 79 LASSERT(list_empty(&timer->stt_list)); in stt_add_timer() 80 LASSERT(timer->stt_expires > ktime_get_real_seconds()); in stt_add_timer() 110 LASSERT(stt_data.stt_nthreads > 0); in stt_del_timer() 111 LASSERT(!stt_data.stt_shuttingdown); in stt_del_timer() 193 LASSERT(!stt_data.stt_shuttingdown); in stt_start_timer_thread() 235 LASSERT(list_empty(&stt_data.stt_hash[i])); in stt_shutdown()
|
/drivers/staging/lustre/lnet/klnds/o2iblnd/ |
D | o2iblnd_cb.c | 53 LASSERT(net != NULL); in kiblnd_tx_done() 54 LASSERT(!in_interrupt()); in kiblnd_tx_done() 55 LASSERT(!tx->tx_queued); /* mustn't be queued for sending */ in kiblnd_tx_done() 56 LASSERT(tx->tx_sending == 0); /* mustn't be awaiting sent callback */ in kiblnd_tx_done() 57 LASSERT(!tx->tx_waiting); /* mustn't be awaiting peer response */ in kiblnd_tx_done() 58 LASSERT(tx->tx_pool != NULL); in kiblnd_tx_done() 68 LASSERT(ni == tx->tx_conn->ibc_peer->ibp_ni); in kiblnd_tx_done() 118 LASSERT(tx->tx_nwrq == 0); in kiblnd_get_idle_tx() 119 LASSERT(!tx->tx_queued); in kiblnd_get_idle_tx() 120 LASSERT(tx->tx_sending == 0); in kiblnd_get_idle_tx() [all …]
|
/drivers/staging/lustre/lustre/lov/ |
D | lov_lock.c | 111 LASSERT(cl_lock_is_mutexed(parent)); in lov_sublock_adopt() 112 LASSERT(cl_lock_is_mutexed(sublock)); in lov_sublock_adopt() 118 LASSERT(lov_lock_link_find(env, lck, lsl) == NULL); in lov_sublock_adopt() 119 LASSERT(idx < lck->lls_nr); in lov_sublock_adopt() 123 LASSERT(lck->lls_nr_filled <= lck->lls_nr); in lov_sublock_adopt() 133 LASSERT(rc == 0); /* there is no way this can fail, currently */ in lov_sublock_adopt() 145 LASSERT(idx < lck->lls_nr); in lov_sublock_alloc() 202 LASSERT(list_empty(&closure->clc_list)); in lov_sublock_lock() 210 LASSERT(cl_lock_is_mutexed(child)); in lov_sublock_lock() 220 LASSERT(!(lls->sub_flags & LSF_HELD)); in lov_sublock_lock() [all …]
|
/drivers/staging/lustre/lustre/osc/ |
D | osc_cache.c | 134 LASSERT(expr); \ 154 LASSERT(ext->oe_intree); in next_extent() 163 LASSERT(ext->oe_intree); in prev_extent() 317 LASSERT(osc_object_is_locked(obj)); in osc_extent_is_overlapped() 334 LASSERT(osc_object_is_locked(ext->oe_obj)); in osc_extent_state_set() 335 LASSERT(state >= OES_INV && state < OES_STATE_MAX); in osc_extent_state_set() 373 LASSERT(atomic_read(&ext->oe_refc) >= 0); in osc_extent_get() 380 LASSERT(atomic_read(&ext->oe_refc) > 0); in osc_extent_put() 382 LASSERT(list_empty(&ext->oe_link)); in osc_extent_put() 383 LASSERT(atomic_read(&ext->oe_users) == 0); in osc_extent_put() [all …]
|
D | osc_lock.c | 183 LASSERT(olck->ols_has_ref); in osc_lock_detach() 210 LASSERT(!ols->ols_hold); in osc_lock_unuse() 211 LASSERT(ols->ols_agl); in osc_lock_unuse() 216 LASSERT(!ols->ols_hold); in osc_lock_unuse() 221 LASSERT(!ols->ols_glimpse); in osc_lock_unuse() 222 LASSERT(ols->ols_hold); in osc_lock_unuse() 250 LASSERT(ols->ols_lock == NULL); in osc_lock_fini() 251 LASSERT(atomic_read(&ols->ols_pageref) == 0 || in osc_lock_fini() 271 LASSERT((enqflags & ~CEF_MASK) == 0); in osc_enq2ldlm_flags() 362 LASSERT(dlmlock != NULL); in osc_lock_lvb_update() [all …]
|
D | osc_object.c | 109 LASSERT(list_empty(&osc->oo_inflight[i])); in osc_object_free() 111 LASSERT(list_empty(&osc->oo_ready_item)); in osc_object_free() 112 LASSERT(list_empty(&osc->oo_hp_ready_item)); in osc_object_free() 113 LASSERT(list_empty(&osc->oo_write_item)); in osc_object_free() 114 LASSERT(list_empty(&osc->oo_read_item)); in osc_object_free() 116 LASSERT(osc->oo_root.rb_node == NULL); in osc_object_free() 117 LASSERT(list_empty(&osc->oo_hp_exts)); in osc_object_free() 118 LASSERT(list_empty(&osc->oo_urgent_exts)); in osc_object_free() 119 LASSERT(list_empty(&osc->oo_rpc_exts)); in osc_object_free() 120 LASSERT(list_empty(&osc->oo_reading_exts)); in osc_object_free() [all …]
|
/drivers/staging/lustre/lnet/klnds/socklnd/ |
D | socklnd_cb.c | 35 LASSERT(size == KSOCK_NOOP_TX_SIZE); in ksocknal_alloc_tx() 43 LASSERT(tx->tx_desc_size == size); in ksocknal_alloc_tx() 116 LASSERT(tx->tx_niov > 0); in ksocknal_send_iov() 125 LASSERT (nob <= tx->tx_resid); in ksocknal_send_iov() 130 LASSERT(tx->tx_niov > 0); in ksocknal_send_iov() 153 LASSERT(tx->tx_niov == 0); in ksocknal_send_kiov() 154 LASSERT(tx->tx_nkiov > 0); in ksocknal_send_kiov() 163 LASSERT (nob <= tx->tx_resid); in ksocknal_send_kiov() 168 LASSERT(tx->tx_nkiov > 0); in ksocknal_send_kiov() 195 LASSERT(tx->tx_resid != 0); in ksocknal_transmit() [all …]
|
D | socklnd.c | 57 LASSERT(i < LNET_MAX_INTERFACES); in ksocknal_ip2iface() 94 LASSERT(atomic_read(&route->ksnr_refcount) == 0); in ksocknal_destroy_route() 108 LASSERT(id.nid != LNET_NID_ANY); in ksocknal_create_peer() 109 LASSERT(id.pid != LNET_PID_ANY); in ksocknal_create_peer() 110 LASSERT(!in_interrupt()); in ksocknal_create_peer() 157 LASSERT(atomic_read(&peer->ksnp_refcount) == 0); in ksocknal_destroy_peer() 158 LASSERT(peer->ksnp_accepting == 0); in ksocknal_destroy_peer() 159 LASSERT(list_empty(&peer->ksnp_conns)); in ksocknal_destroy_peer() 160 LASSERT(list_empty(&peer->ksnp_routes)); in ksocknal_destroy_peer() 161 LASSERT(list_empty(&peer->ksnp_tx_queue)); in ksocknal_destroy_peer() [all …]
|
/drivers/staging/lustre/lustre/obdclass/ |
D | llog_obd.c | 113 LASSERT(ctxt != NULL); in llog_cleanup() 114 LASSERT(ctxt != LP_POISON); in llog_cleanup() 117 LASSERT(olg != NULL); in llog_cleanup() 118 LASSERT(olg != LP_POISON); in llog_cleanup() 125 LASSERT(atomic_read(&ctxt->loc_refcount) < LI_POISON); in llog_cleanup() 126 LASSERT(atomic_read(&ctxt->loc_refcount) > 1); in llog_cleanup() 154 LASSERT(olg != NULL); in llog_setup() 181 LASSERT(ctxt->loc_olg == olg); in llog_setup() 182 LASSERT(ctxt->loc_obd == obd); in llog_setup() 183 LASSERT(ctxt->loc_exp == disk_obd->obd_self_export); in llog_setup() [all …]
|
/drivers/staging/lustre/lustre/include/ |
D | lustre_export.h | 231 LASSERT(exp != NULL); in exp_max_brw_size() 245 LASSERT(exp != NULL); in exp_connect_cancelset() 251 LASSERT(exp != NULL); in exp_connect_lru_resize() 257 LASSERT(exp != NULL); in exp_connect_rmtclient() 271 LASSERT(exp != NULL); in exp_connect_vbr() 272 LASSERT(exp->exp_connection); in exp_connect_vbr() 278 LASSERT(exp != NULL); in exp_connect_som() 291 LASSERT(imp != NULL); in imp_connect_lru_resize() 303 LASSERT(exp != NULL); in exp_connect_lvb_type() 314 LASSERT(imp != NULL); in imp_connect_lvb_type() [all …]
|