Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- block/bdev.c
- block/partitions/core.c, line 712
- drivers/block/loop.c
- drivers/block/ublk_drv.c, line 2459
- drivers/nvme/host/multipath.c, line 669
- drivers/s390/block/dasd_genhd.c
Smatch caller information:
drivers/block/loop.c __loop_clr_fd() -> bdev_disk_changed()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | disk | 4096-ptr_max |
| PARAM_VALUE | 0 | disk->part0 | 4096-ptr_max |
| PARAM_VALUE | 0 | disk->part0->bd_holder_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | disk->part0->bd_holder_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | disk->part0->bd_holder_lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | disk->part0->bd_holder_lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | disk->part0->bd_holder_lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | disk->part0->bd_holder_lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | disk->part0->bd_holder_lock.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | disk->part0->bd_holder_lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | disk->part0->bd_mapping | 4096-ptr_max |
| PARAM_VALUE | 0 | disk->part0->bd_mapping->host->i_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | disk->part0->bd_nr_sectors | 0-18014398509481983 |
| PARAM_VALUE | 0 | disk->part0->bd_size_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | invalidate | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &disk->open_mutex | ||
| TYPE_LOCK | (struct gendisk)->open_mutex |
drivers/block/loop.c loop_reread_partitions() -> bdev_disk_changed()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | disk | 4096-ptr_max |
| PARAM_VALUE | 0 | disk->open_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | disk->open_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | disk->open_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | disk->open_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | disk->open_mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | disk->open_mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | disk->open_mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | invalidate | 0 |
| CAPPED_DATA | 0 | &disk->open_mutex | 1 |
| USER_DATA | 0 | disk->part0->bd_nr_sectors | 0-18014398509481983 |
| LOCK2 | 0 | &disk->open_mutex | |
| TYPE_LOCK | (struct gendisk)->open_mutex |
drivers/block/ublk_drv.c ublk_partition_scan_work() -> bdev_disk_changed()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | disk | 4096-ptr_max |
| PARAM_VALUE | 0 | disk->open_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | disk->open_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | disk->open_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | disk->open_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | disk->open_mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | disk->open_mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | disk->open_mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | invalidate | 0 |
| CAPPED_DATA | 0 | &disk->open_mutex | 1 |
| DATA_SOURCE | 0 | disk | r ublk_get_disk |
| NOCHECK_CALL | |||
| LOCK2 | 0 | &disk->open_mutex | |
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct gendisk)->open_mutex |
block/bdev.c blkdev_get_whole() -> bdev_disk_changed()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | disk | 4096-ptr_max |
| PARAM_VALUE | 0 | disk->fops | 4096-ptr_max |
| PARAM_VALUE | 0 | disk->fops->open | 4096-ptr_max |
| PARAM_VALUE | 1 | invalidate | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &disk->open_mutex | ||
| TYPE_LOCK | (struct gendisk)->open_mutex |
block/bdev.c blkdev_get_whole() -> bdev_disk_changed()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | disk | 4096-ptr_max |
| PARAM_VALUE | 0 | disk->fops | 4096-ptr_max |
| PARAM_VALUE | 0 | disk->fops->open | 0,4096-ptr_max |
| PARAM_VALUE | 1 | invalidate | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &disk->open_mutex | ||
| TYPE_LOCK | (struct gendisk)->open_mutex |
drivers/nvme/host/multipath.c nvme_partition_scan_work() -> bdev_disk_changed()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | disk | 4096-ptr_max |
| PARAM_VALUE | 0 | disk->open_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | disk->open_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | disk->open_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | disk->open_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | disk->open_mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | disk->open_mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | disk->open_mutex.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 1 | invalidate | 0 |
| CAPPED_DATA | 0 | &disk->open_mutex | 1 |
| NOCHECK_CALL | |||
| LOCK2 | 0 | &disk->open_mutex | |
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct gendisk)->open_mutex |