Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 7 files:
- drivers/md/dm-audit.c
- drivers/md/dm-ioctl.c
- drivers/md/dm-raid.c
- drivers/md/dm-rq.c, line 391
- drivers/md/dm-sysfs.c, line 132
- drivers/md/dm-verity-target.c
- drivers/md/dm.c
Smatch caller information:
drivers/md/dm-rq.c map_request() -> dm_disk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | md | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | md | unit_byte |
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read |
drivers/md/dm-ioctl.c __dev_status() -> dm_disk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | md | $0 |
drivers/md/dm-ioctl.c dm_early_create() -> dm_disk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | md | 4096-ptr_max |
| NO_OVERFLOW_SIMPLE | 0 | md->queue->limits.max_hw_discard_sectors |
drivers/md/dm-ioctl.c do_resume() -> dm_disk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | md | 4096-ptr_max |
| PARAM_VALUE | 0 | md->disk | 4096-ptr_max |
| NO_OVERFLOW_SIMPLE | 0 | md->queue->limits.max_hw_discard_sectors |
drivers/md/dm-ioctl.c do_resume() -> dm_disk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | md | 4096-ptr_max |
| PARAM_VALUE | 0 | md->disk | 4096-ptr_max |
| NO_OVERFLOW_SIMPLE | 0 | md->queue->limits.max_hw_discard_sectors |
drivers/md/dm-ioctl.c list_devices() -> dm_disk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | global &_hash_lock |
drivers/md/dm.c __dm_destroy() -> dm_disk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | md | 4096-ptr_max |
| DATA_SOURCE | 0 | md | $0 |
| PREEMPT_ADD | <- disables preempt | ||
| NO_OVERFLOW_SIMPLE | 0 | md->dax_dev->inode.i_size | |
| NO_OVERFLOW_SIMPLE | 0 | md->mempools->bs.rescue_workqueue->rescuer->task->dl.pi_se->dl_runtime | |
| NO_OVERFLOW_SIMPLE | 0 | md->mempools->io_bs.rescue_workqueue->rescuer->task->dl.pi_se->dl_runtime | |
| LOCK2 | global &_minor_lock |
drivers/md/dm.c dm_get_md() -> dm_disk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | md | 1-18446744073709551614 |
| DATA_SOURCE | 0 | md | r idr_find |
| PREEMPT_ADD | <- disables preempt | ||
| LOCK2 | global &_minor_lock | ||
| HALF_LOCKED2 | global &_hash_lock | ||
| HALF_LOCKED2 | global &dm_thin_pool_table.mutex |
drivers/md/dm-sysfs.c dm_sysfs_init() -> dm_disk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | md | 4096-ptr_max |
| PARAM_VALUE | 0 | md->disk | 4096-ptr_max |
| BUF_SIZE | 0 | md->disk->fops | (-1),144 |
| CAPPED_DATA | 0 | md->disk | 1 |
| CAPPED_DATA | 0 | md->disk->part0 | 1 |
| CAPPED_DATA | 0 | md->queue->limits.max_hw_wzeroes_unmap_sectors | 1 |
| DATA_SOURCE | 0 | md | $0 |
| NO_OVERFLOW_SIMPLE | 0 | md->queue->async_depth | |
| NO_OVERFLOW_SIMPLE | 0 | md->queue->limits.max_hw_discard_sectors | |
| NO_OVERFLOW_SIMPLE | 0 | md->queue->nr_hw_queues | |
| NO_OVERFLOW_SIMPLE | 0 | md->queue->nr_requests | |
| NO_OVERFLOW_SIMPLE | 0 | md->queue->tag_set->nr_hw_queues | |
| NO_OVERFLOW_SIMPLE | 0 | md->queue->tag_set->queue_depth | |
| NO_OVERFLOW_SIMPLE | 0 | md->tag_set->shared_tags->bitmap_tags.sb.depth | |
| NO_OVERFLOW_SIMPLE | 0 | md->tag_set->shared_tags->breserved_tags.sb.depth | |
| HALF_LOCKED2 | 0 | &md->type_lock |
drivers/md/dm-raid.c raid_ctr() -> dm_disk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | &rs->md.reconfig_mutex | ||
| HALF_LOCKED2 | &md->type_lock | ||
| TYPE_LOCK | (struct mddev)->reconfig_mutex |
drivers/md/dm-raid.c rs_set_capacity() -> dm_disk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| HALF_LOCKED2 | &md->suspend_lock |
drivers/md/dm-audit.c dm_audit_log_ti() -> dm_disk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | md | r dm_table_get_md |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/md/dm-audit.c dm_audit_log_ti() -> dm_disk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | md | 4096-ptr_max |
| DATA_SOURCE | 0 | md | r dm_table_get_md |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/md/dm-verity-target.c verity_handle_err() -> dm_disk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | md | r dm_table_get_md |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/md/dm-verity-target.c verity_preresume() -> dm_disk()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | &md->suspend_lock | ||
| TYPE_LOCK | (struct mapped_device)->suspend_lock |