Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
fs/dlm/lock.c __receive_convert_reply() -> add_lkb()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | r | 4096-ptr_max |
| PARAM_VALUE | 0 | r->res_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | lkb | 4096-ptr_max |
| PARAM_VALUE | 1 | lkb->lkb_nodeid | s32min-(-1),1-s32max |
| PARAM_VALUE | 1 | lkb->lkb_resource | 4096-ptr_max |
| PARAM_VALUE | 1 | lkb->lkb_resource->res_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | lkb->lkb_resource->res_ls | 4096-ptr_max |
| PARAM_VALUE | 1 | lkb->lkb_resource->res_ls->ls_waiters_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | lkb->lkb_status | 0 |
| PARAM_VALUE | 1 | lkb->lkb_wait_reply.next | 4096-ptr_max |
| PARAM_VALUE | 1 | lkb->lkb_wait_reply.next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | lkb->lkb_wait_reply.next->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | lkb->lkb_wait_reply.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | lkb->lkb_wait_reply.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | lkb->lkb_wait_reply.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | lkb->lkb_wait_type | 0 |
| PARAM_VALUE | 2 | status | 3 |
| CAPPED_DATA | 1 | lkb->lkb_nodeid | 1 |
| DATA_SOURCE | 0 | r | $0 |
| DATA_SOURCE | 1 | lkb | $1 |
| STR_LEN | 1 | lkb->lkb_rqmode | (-1) |
| PREEMPT_ADD | |||
| RX_PATH | |||
| NOCHECK_CALL | |||
| LOCK2 | &ls->ls_requestqueue_lock | ||
| LOCK2 | bh | ||
| LOCK2 | 0 | &r->res_lock | |
| HALF_LOCKED2 | &ls->ls_recoverd_active | ||
| HALF_LOCKED2 | &ls->ls_recv_active | ||
| TYPE_LOCK | (struct dlm_ls)->ls_requestqueue_lock | ||
| TYPE_LOCK | (struct dlm_rsb)->res_lock |
fs/dlm/lock.c _grant_lock() -> add_lkb()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | r | 4096-ptr_max |
| PARAM_VALUE | 1 | lkb | 4096-ptr_max |
| PARAM_VALUE | 1 | lkb->lkb_status | 0 |
| PARAM_VALUE | 2 | status | 2 |
| CAPPED_DATA | 1 | lkb | 1 |
| DATA_SOURCE | 0 | r | $0 |
| DATA_SOURCE | 1 | lkb | $1 |
| STR_LEN | 1 | lkb->lkb_grmode | (-1) |
| STR_LEN | 1 | lkb->lkb_rqmode | (-1) |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | r->res_hash | 0-u32max |
| USER_DATA | 0 | r->res_length | 0-64[c][u] |
| USER_DATA | 1 | lkb->lkb_exflags | 0-u32max[u] |
| USER_DATA | 1 | lkb->lkb_grmode | 0-5[u] |
| USER_DATA | 1 | lkb->lkb_resource->res_hash | 0-u32max |
| USER_DATA | 1 | lkb->lkb_resource->res_length | 0-64[c][u] |
| USER_DATA | 1 | lkb->lkb_rqmode | 0-5[u] |
| LOCK2 | 0 | &r->res_lock | |
| HALF_LOCKED2 | &ls->ls_recoverd_active | ||
| HALF_LOCKED2 | &ls->ls_requestqueue_lock | ||
| HALF_LOCKED2 | bh | ||
| TYPE_LOCK | (struct dlm_rsb)->res_lock |
fs/dlm/lock.c dlm_debug_add_lkb() -> add_lkb()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | r | 4096-ptr_max |
| PARAM_VALUE | 0 | r->res_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | lkb | 4096-ptr_max |
| PARAM_VALUE | 1 | lkb->lkb_grmode | (-1) |
| PARAM_VALUE | 1 | lkb->lkb_last_bast_cb_mode | (-1) |
| PARAM_VALUE | 1 | lkb->lkb_last_cast_cb_mode | (-1) |
| PARAM_VALUE | 1 | lkb->lkb_last_cb_mode | (-1) |
| PARAM_VALUE | 1 | lkb->lkb_lksb | 4096-ptr_max |
| PARAM_VALUE | 1 | lkb->lkb_ref.refcount.refs.counter | 1 |
| PARAM_VALUE | 1 | lkb->lkb_resource | 4096-ptr_max |
| BUF_SIZE | 1 | lkb->lkb_lksb | 24 |
| DATA_SOURCE | 2 | status | $6 |
| PREEMPT_ADD | <- disables preempt | ||
| NOCHECK_CALL | |||
| LOCK2 | bh | ||
| LOCK2 | 0 | &r->res_lock | |
| TYPE_LOCK | (struct dlm_rsb)->res_lock |
fs/dlm/lock.c dlm_recover_master_copy() -> add_lkb()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | r | 4096-ptr_max |
| PARAM_VALUE | 0 | r->res_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | lkb | 4096-ptr_max |
| PARAM_VALUE | 1 | lkb->lkb_astfn | 0,5576085434078453760 |
| PARAM_VALUE | 1 | lkb->lkb_bastfn | 0,8394382215821885440 |
| PARAM_VALUE | 1 | lkb->lkb_last_bast_cb_mode | (-1) |
| PARAM_VALUE | 1 | lkb->lkb_last_cast_cb_mode | (-1) |
| PARAM_VALUE | 1 | lkb->lkb_last_cb_mode | (-1) |
| PARAM_VALUE | 1 | lkb->lkb_lvbptr | 16,4096-ptr_max |
| PARAM_VALUE | 1 | lkb->lkb_ref.refcount.refs.counter | 1 |
| PARAM_VALUE | 1 | lkb->lkb_resource | 4096-ptr_max |
| PREEMPT_ADD | <- disables preempt | ||
| NOCHECK_CALL | |||
| LOCK2 | &ls->ls_recv_active | ||
| LOCK2 | &pool->lock | ||
| LOCK2 | bh | ||
| LOCK2 | 0 | &r->res_lock | |
| HALF_LOCKED2 | global &nodes_srcu | ||
| TYPE_LOCK | (struct dlm_ls)->ls_recv_active | ||
| TYPE_LOCK | (struct dlm_rsb)->res_lock |
fs/dlm/lock.c do_convert() -> add_lkb()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | r | 4096-ptr_max |
| PARAM_VALUE | 0 | r->res_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | lkb | 4096-ptr_max |
| PARAM_VALUE | 1 | lkb->lkb_grmode | 0 |
| PARAM_VALUE | 1 | lkb->lkb_resource | 4096-ptr_max |
| PARAM_VALUE | 1 | lkb->lkb_resource->res_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | lkb->lkb_status | 0 |
| PARAM_VALUE | 2 | status | 3 |
| CAPPED_DATA | 1 | lkb | 1 |
| DATA_SOURCE | 0 | r | $0 |
| DATA_SOURCE | 1 | lkb | $1 |
| STR_LEN | 1 | lkb->lkb_rqmode | (-1) |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 1 | lkb->lkb_exflags | 0-u32max[u] |
| USER_DATA | 1 | lkb->lkb_rqmode | 0-5[u] |
| LOCK2 | 0 | &r->res_lock | |
| HALF_LOCKED2 | &ls->ls_recoverd_active | ||
| HALF_LOCKED2 | &ls->ls_requestqueue_lock | ||
| HALF_LOCKED2 | bh | ||
| TYPE_LOCK | (struct dlm_rsb)->res_lock |
fs/dlm/lock.c do_request() -> add_lkb()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | r | 4096-ptr_max |
| PARAM_VALUE | 0 | r->res_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | lkb | 4096-ptr_max |
| PARAM_VALUE | 2 | status | 1 |
| CAPPED_DATA | 1 | lkb | 1 |
| DATA_SOURCE | 0 | r | $0 |
| DATA_SOURCE | 1 | lkb | $1 |
| STR_LEN | 1 | lkb->lkb_rqmode | (-1) |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | r->res_hash | 0-u32max |
| USER_DATA | 0 | r->res_length | 0-64[c][u] |
| USER_DATA | 1 | lkb->lkb_exflags | 0-u32max[u] |
| USER_DATA | 1 | lkb->lkb_resource->res_hash | 0-u32max |
| USER_DATA | 1 | lkb->lkb_resource->res_length | 0-64[c][u] |
| USER_DATA | 1 | lkb->lkb_rqmode | 0-5[u] |
| LOCK2 | 0 | &r->res_lock | |
| HALF_LOCKED2 | &ls->ls_recoverd_active | ||
| HALF_LOCKED2 | &ls->ls_requestqueue_lock | ||
| HALF_LOCKED2 | bh | ||
| TYPE_LOCK | (struct dlm_rsb)->res_lock |
fs/dlm/lock.c move_lkb() -> add_lkb()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | r | 4096-ptr_max |
| PARAM_VALUE | 1 | lkb | 4096-ptr_max |
| PARAM_VALUE | 1 | lkb->lkb_status | 0 |
| PARAM_VALUE | 2 | status | 2 |
| CAPPED_DATA | 1 | lkb | 1 |
| DATA_SOURCE | 0 | r | $0 |
| DATA_SOURCE | 1 | lkb | $1 |
| DATA_SOURCE | 2 | status | $2 |
| STR_LEN | 1 | lkb->lkb_grmode | (-1) |
| STR_LEN | 1 | lkb->lkb_rqmode | (-1) |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | r->res_hash | 0-u32max |
| USER_DATA | 0 | r->res_length | 0-64[c][u] |
| USER_DATA | 1 | lkb->lkb_exflags | 0-u32max[u] |
| USER_DATA | 1 | lkb->lkb_grmode | 0-5[u] |
| USER_DATA | 1 | lkb->lkb_resource->res_hash | 0-u32max |
| USER_DATA | 1 | lkb->lkb_resource->res_length | 0-64[c][u] |
| USER_DATA | 1 | lkb->lkb_rqmode | 0-5[u] |
| LOCK2 | 0 | &r->res_lock | |
| HALF_LOCKED2 | &ls->ls_requestqueue_lock | ||
| HALF_LOCKED2 | bh | ||
| TYPE_LOCK | (struct dlm_rsb)->res_lock |
fs/dlm/lock.c receive_request_reply() -> add_lkb()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | r | 4096-ptr_max |
| PARAM_VALUE | 0 | r->res_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | lkb | 4096-ptr_max |
| PARAM_VALUE | 1 | lkb->lkb_resource | 4096-ptr_max |
| PARAM_VALUE | 1 | lkb->lkb_resource->res_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | lkb->lkb_resource->res_ls | 4096-ptr_max |
| PARAM_VALUE | 1 | lkb->lkb_resource->res_ls->ls_waiters_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | lkb->lkb_wait_reply.next->prev | 4096-ptr_max |
| PARAM_VALUE | 1 | lkb->lkb_wait_reply.prev->next | 4096-ptr_max |
| PARAM_VALUE | 1 | lkb->lkb_wait_type | 0 |
| PARAM_VALUE | 2 | status | 1 |
| CAPPED_DATA | 1 | lkb->lkb_nodeid | 1 |
| PREEMPT_ADD | <- disables preempt | ||
| NOCHECK_CALL | |||
| LOCK2 | &ls->ls_requestqueue_lock | ||
| LOCK2 | bh | ||
| LOCK2 | 0 | &r->res_lock | |
| HALF_LOCKED2 | &ls->ls_recoverd_active | ||
| HALF_LOCKED2 | &ls->ls_recv_active | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct dlm_ls)->ls_requestqueue_lock | ||
| TYPE_LOCK | (struct dlm_rsb)->res_lock |