Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/block/drbd/drbd_state.c _drbd_set_state() -> drbd_md_mark_dirty()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->ldev 4096-ptr_max
PARAM_VALUE 0 device->misc_wait.lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 device->resource 4096-ptr_max
PARAM_VALUE 0 device->state.disk 1-15
PARAM_VALUE 0 device->state_wait.lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 device->vdisk->part0->bd_device.kobj.parent->sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 device->vdisk->part0->bd_device.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 device->vdisk->part0->bd_device.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 device->vdisk->queue->mq_kobj->sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 device->vdisk->queue_kobj.sd->attr.open->nr_mmapped 0-4294967295
BUF_SIZE 0 device s32min-(-1),1-s32max
BUF_SIZE 0 device s32min-(-1),1-s32max
BUF_SIZE 0 device->ldev (-1),208
BUF_SIZE 0 device->p_uuid (-1),8
BUF_SIZE 0 device->resync (-1)-134217728
BUF_SIZE 0 device->rs_plan_s (-1),12-s32max
CAPPED_DATA 0 device 1
CAPPED_DATA 0 device->resource->devices.idr_base 1
DATA_SOURCE 0 device $0
STR_LEN 0 device (-1),6,8,11-12,17,19-20,23,26-27,29,31-32
STR_LEN 0 device (-1),6,8,11-12,17,19-20,23,26-27,29,31-32
STR_LEN 0 device->bm_io_work.why (-1)
STR_LEN 0 device->resync->name (-1),6
BIT_INFO 0 device->ldev->md.flags 0x0,0xffffff7f
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 device->act_log->lc_cache->sheaf_capacity
NO_OVERFLOW_SIMPLE 0 device->act_log->nr_elements
NO_OVERFLOW_SIMPLE 0 device->resync->lc_cache->sheaf_capacity
NO_OVERFLOW_SIMPLE 0 device->resync->nr_elements
UNITS 0 device unit_byte
HALF_LOCKED2 &adm_ctx->resource->adm_mutex
HALF_LOCKED2 &device->resource->req_lock
HALF_LOCKED2 &resource->req_lock
HALF_LOCKED2 flags
HALF_LOCKED2 global &resources_mutex
HALF_LOCKED2 irq
HALF_LOCKED2 rcu_read
HALF_LOCKED2 0 device->state_mutex
HALF_LOCKED2 0 &device->resource->req_lock

drivers/block/drbd/drbd_nl.c drbd_check_al_size() -> drbd_md_mark_dirty()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->act_log 4096-ptr_max
PARAM_VALUE 0 device->act_log->element_off 0
PARAM_VALUE 0 device->act_log->element_size 48
PARAM_VALUE 0 device->act_log->free.next 4096-ptr_max
PARAM_VALUE 0 device->act_log->free.prev 4096-ptr_max
PARAM_VALUE 0 device->act_log->in_use.next 4096-ptr_max
PARAM_VALUE 0 device->act_log->in_use.prev 4096-ptr_max
PARAM_VALUE 0 device->act_log->lc_cache 4096-ptr_max
PARAM_VALUE 0 device->act_log->lc_element 16,4096-ptr_max
PARAM_VALUE 0 device->act_log->lc_slot 16,4096-ptr_max
PARAM_VALUE 0 device->act_log->lru.next 4096-ptr_max
PARAM_VALUE 0 device->act_log->lru.prev 4096-ptr_max
PARAM_VALUE 0 device->act_log->max_pending_changes 64
PARAM_VALUE 0 device->act_log->name 1295643500801425408
PARAM_VALUE 0 device->act_log->nr_elements 0-16777216
PARAM_VALUE 0 device->act_log->to_be_changed.next 4096-ptr_max
PARAM_VALUE 0 device->act_log->to_be_changed.prev 4096-ptr_max
PARAM_VALUE 0 device->al_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 device->resource 4096-ptr_max
BUF_SIZE 0 device->act_log 176
CAPPED_DATA 0 device 1
CAPPED_DATA 0 device->act_log->nr_elements 1
DATA_SOURCE 0 device $0
STR_LEN 0 device->act_log->name 7
TERMINATED 0 device->act_log->name 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 device->act_log->nr_elements
LOCK2 &adm_ctx->resource->adm_mutex
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &devlink->lock
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex
HALF_LOCKED2 global &audit_cmd_mutex.lock
HALF_LOCKED2 global &cb_lock
HALF_LOCKED2 global &crypto_cfg_mutex
HALF_LOCKED2 global &dpll_lock
HALF_LOCKED2 global &hwsim_phys_lock
HALF_LOCKED2 global &net_dm_mutex
HALF_LOCKED2 global &rtnl_mutex
HALF_LOCKED2 global &rx_queue_mutex
HALF_LOCKED2 0 &device->resource->conf_update
TYPE_LOCK (struct drbd_resource)->adm_mutex

drivers/block/drbd/drbd_nl.c drbd_nl_attach_doit() -> drbd_md_mark_dirty()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->act_log->free.next->next 4096-ptr_max
PARAM_VALUE 0 device->act_log->in_use.next->next 4096-ptr_max
PARAM_VALUE 0 device->act_log->in_use.next->prev 4096-ptr_max
PARAM_VALUE 0 device->act_log->pending_changes 0
PARAM_VALUE 0 device->bitmap->bm_bits 0-2305843009213693951
PARAM_VALUE 0 device->bitmap->bm_change.dep_map->name 0-255
PARAM_VALUE 0 device->bitmap->bm_change.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 device->bitmap->bm_change.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 device->bitmap->bm_change.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 device->bitmap->bm_change.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 device->bitmap->bm_change.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 device->bitmap->bm_change.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 device->bitmap->bm_change.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 device->bitmap->bm_change.osq.tail.counter 0-s32max
PARAM_VALUE 0 device->bitmap->bm_flags 0-4294967295
PARAM_VALUE 0 device->bitmap->bm_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 device->bitmap->bm_number_of_pages 0-70368744177664
PARAM_VALUE 0 device->bitmap->bm_task 0
PARAM_VALUE 0 device->bitmap->bm_why 0
PARAM_VALUE 0 device->bitmap->bm_words 0-36028797018963968
PARAM_VALUE 0 device->bitmap->n_bitmap_hints 0-64
PARAM_VALUE 0 device->ldev 4096-ptr_max
PARAM_VALUE 0 device->ldev->md.uuid 4096-ptr_max
PARAM_VALUE 0 device->misc_wait.lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 device->ov_last_oos_size 0
PARAM_VALUE 0 device->ov_last_oos_start 0
PARAM_VALUE 0 device->ov_start_sector 0,8-18446744073709551608
PARAM_VALUE 0 device->pending_bitmap_io.prev 4096-ptr_max
PARAM_VALUE 0 device->pending_bitmap_io.prev->next 4096-ptr_max
PARAM_VALUE 0 device->pending_bitmap_io.prev->next->next 4096-ptr_max
PARAM_VALUE 0 device->request_timer.entry->pprev 4096-ptr_max
PARAM_VALUE 0 device->request_timer.entry.pprev 0,4096-ptr_max
PARAM_VALUE 0 device->resource 4096-ptr_max
PARAM_VALUE 0 device->resource->req_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 device->resource->write_ordering 0-2
PARAM_VALUE 0 device->rq_queue->disk 0,4096-ptr_max
PARAM_VALUE 0 device->rq_queue->disk->bdi->io_pages 0-536870911
PARAM_VALUE 0 device->rq_queue->disk->bdi->ra_pages 32-u64max
PARAM_VALUE 0 device->rq_queue->limits.atomic_write_boundary_sectors 0-8388607
PARAM_VALUE 0 device->rq_queue->limits.atomic_write_max_sectors 0-8388607
PARAM_VALUE 0 device->rq_queue->limits.atomic_write_unit_max 0-1171456
PARAM_VALUE 0 device->rq_queue->limits.atomic_write_unit_min 0-1171456
PARAM_VALUE 0 device->rq_queue->limits.discard_granularity 0,512-u32max
PARAM_VALUE 0 device->rq_queue->limits.dma_alignment 1-u32max
PARAM_VALUE 0 device->rq_queue->limits.io_min 512-u32max
PARAM_VALUE 0 device->rq_queue->limits.logical_block_size 512-65536
PARAM_VALUE 0 device->rq_queue->limits.max_discard_segments 1-u16max
PARAM_VALUE 0 device->rq_queue->limits.max_fast_segment_size 0-4096
PARAM_VALUE 0 device->rq_queue->limits.max_segment_size 1-u32max
PARAM_VALUE 0 device->rq_queue->limits.max_segments 1-u16max
PARAM_VALUE 0 device->rq_queue->limits.max_user_sectors 0,8-u32max
PARAM_VALUE 0 device->rq_queue->limits.physical_block_size 512-u32max
PARAM_VALUE 0 device->rq_queue->limits.seg_boundary_mask 1-u64max
PARAM_VALUE 0 device->rq_queue->limits.zone_write_granularity 512-u32max
PARAM_VALUE 0 device->rq_queue->limits_lock.dep_map->name 0-255
PARAM_VALUE 0 device->rq_queue->limits_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 device->rq_queue->limits_lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 device->rq_queue->limits_lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 device->rq_queue->limits_lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 device->rq_queue->limits_lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 device->rq_queue->limits_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 device->rs_last_sect_ev 0
PARAM_VALUE 0 device->state_mutex->first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 device->vdisk->part0 4096-ptr_max
PARAM_VALUE 0 device->vdisk->part0->bd_nr_sectors 0-18014398509481983
PARAM_VALUE 0 device->vdisk->part0->bd_size_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 device->vdisk->slave_bdevs.next 4096-ptr_max
PARAM_VALUE 0 device->vdisk->slave_bdevs.next->next 4096-ptr_max
PARAM_VALUE 0 device->vdisk->slave_bdevs.next->prev 4096-ptr_max
PARAM_VALUE 0 device->vdisk->slave_dir 1-u64max
PARAM_VALUE 0 *device->bitmap->bm_why 0-255
CAPPED_DATA 0 device 1
CAPPED_DATA 0 &device->request_timer 1
STR_LEN 0 device->resync->name (-1)
TERMINATED 0 device->resync->name 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 device->act_log->nr_elements
NO_OVERFLOW_SIMPLE 0 device->resync->nr_elements
LOCK2 &adm_ctx->resource->adm_mutex
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &devlink->lock
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &audit_cmd_mutex.lock
HALF_LOCKED2 global &cb_lock
HALF_LOCKED2 global &crypto_cfg_mutex
HALF_LOCKED2 global &dpll_lock
HALF_LOCKED2 global &hwsim_phys_lock
HALF_LOCKED2 global &net_dm_mutex
HALF_LOCKED2 global &rtnl_mutex
HALF_LOCKED2 global &rx_queue_mutex
TYPE_LOCK (struct drbd_resource)->adm_mutex

drivers/block/drbd/drbd_main.c __drbd_uuid_set() -> drbd_md_mark_dirty()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->ldev 4096-ptr_max
PARAM_VALUE 0 device->ldev->md.uuid 4096-ptr_max
DATA_SOURCE 0 device $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &device->ldev->md.uuid_lock
HALF_LOCKED2 flags
HALF_LOCKED2 irq
HALF_LOCKED2 0 device->state_mutex
HALF_LOCKED2 0 &device->ldev->md.uuid_lock
HALF_LOCKED2 0 &device->resource->req_lock
TYPE_LOCK (struct drbd_md)->uuid_lock

drivers/block/drbd/drbd_main.c drbd_md_clear_flag() -> drbd_md_mark_dirty()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->ldev 4096-ptr_max
PARAM_VALUE 0 device->ldev->md.flags 8-u32max
PARAM_VALUE 0 device->md_sync_timer->entry.pprev 4096-ptr_max
PARAM_VALUE 0 device->ov_last_oos_size 0
PARAM_VALUE 0 device->ov_last_oos_start 0
PARAM_VALUE 0 device->ov_start_sector 0,8-18446744073709551608
PARAM_VALUE 0 device->pending_bitmap_io.prev 4096-ptr_max
PARAM_VALUE 0 device->pending_bitmap_io.prev->next 4096-ptr_max
PARAM_VALUE 0 device->pending_bitmap_io.prev->next->next 4096-ptr_max
PARAM_VALUE 0 device->resource->req_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 device->resync_timer->entry.pprev 4096-ptr_max
PARAM_VALUE 0 device->resync_timer.entry.pprev 0,4096-ptr_max
PARAM_VALUE 0 device->rs_last_sect_ev 0
PARAM_VALUE 0 device->state.disk 1-15
BUF_SIZE 0 device->ldev (-1),208
BUF_SIZE 0 device->p_uuid (-1),8
BUF_SIZE 0 device->resync (-1),176
BUF_SIZE 0 device->rs_plan_s (-1),12-s32max
DATA_SOURCE 0 device $0
STR_LEN 0 device (-1),12,19,23,26-27,29,31-32
STR_LEN 0 device (-1),12,19,23,26-27,29,31-32
STR_LEN 0 device->resync->name (-1),6
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 device->act_log->nr_elements
NO_OVERFLOW_SIMPLE 0 device->resync->nr_elements
HALF_LOCKED2 &sock->mutex
HALF_LOCKED2 0 device->state_mutex

drivers/block/drbd/drbd_main.c drbd_md_set_flag() -> drbd_md_mark_dirty()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->bitmap 0,4096-ptr_max
PARAM_VALUE 0 device->bitmap->bm_change.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 device->bitmap->bm_change.osq.tail.counter 0-s32max
PARAM_VALUE 0 device->bitmap->bm_flags 0-4294967295
PARAM_VALUE 0 device->ldev 4096-ptr_max
BUF_SIZE 0 device->ldev (-1),208
BUF_SIZE 0 device->p_uuid (-1),8
BUF_SIZE 0 device->resync (-1),176
BUF_SIZE 0 device->rs_plan_s (-1),12-s32max
DATA_SOURCE 0 device $0
STR_LEN 0 device (-1),12,19,23,26-27,29,31-32
STR_LEN 0 device (-1),12,19,23,26-27,29,31-32
STR_LEN 0 device->resync->name (-1),6
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 device->act_log->nr_elements
NO_OVERFLOW_SIMPLE 0 device->resync->nr_elements
HALF_LOCKED2 0 device->state_mutex

drivers/block/drbd/drbd_main.c drbd_uuid_set_bm() -> drbd_md_mark_dirty()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->al_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 device->ldev 4096-ptr_max
PARAM_VALUE 0 device->ldev->md.uuid 4096-ptr_max
PARAM_VALUE 0 device->ldev->md.uuid_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 device->resource 4096-ptr_max
PARAM_VALUE 0 device->resource->req_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 device->resync->free.next 4096-ptr_max
PARAM_VALUE 0 device->resync->free.next->next 4096-ptr_max
PARAM_VALUE 0 device->resync->free.next->prev 4096-ptr_max
PARAM_VALUE 0 device->resync_wenr u32max
PARAM_VALUE 0 device->rs_failed 0
PARAM_VALUE 0 device->state.disk 1-15
CAPPED_DATA 0 device->state.disk 1
DATA_SOURCE 0 device $0
PREEMPT_ADD
NOCHECK_CALL
LOCK2 irq
LOCK2 0 &device->resource->req_lock
HALF_LOCKED2 device->state_mutex
TYPE_LOCK (struct drbd_resource)->req_lock