Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/block/rbd.c __rbd_obj_handle_request() -> rbd_img_is_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | img_req | 4096-ptr_max |
| PREEMPT_ADD | |||
| LOCK2 | &obj_req->state_mutex | ||
| HALF_LOCKED2 | &img_req->state_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct rbd_obj_request)->state_mutex |
drivers/block/rbd.c need_exclusive_lock() -> rbd_img_is_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | img_req | 4096-ptr_max |
| PARAM_VALUE | 0 | img_req->obj_request->img_request->rbd_dev->parent->header_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | img_req->rbd_dev->header_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->header_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->lock_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->lock_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->opts | 4096-ptr_max |
| PARAM_VALUE | 0 | img_req->rbd_dev->parent->header_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->parent->header_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->rbd_client->client->osdc.lock.first_waiter->type | 0-1 |
| DATA_SOURCE | 0 | img_req | $0 |
| PREEMPT_ADD | |||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | 0 | &img_req->state_mutex |
drivers/block/rbd.c rbd_img_capture_header() -> rbd_img_is_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | img_req | 4096-ptr_max |
| PARAM_VALUE | 0 | img_req->rbd_dev->header_rwsem.first_waiter->type | 0-1 |
| BUF_SIZE | 0 | img_req->obj_request | (-1),1-s32max |
| DATA_SOURCE | 0 | img_req | $0 |
| PREEMPT_ADD | |||
| NO_OVERFLOW_SIMPLE | 0 | img_req->obj_request->num_img_extents | |
| HALF_LOCKED2 | &obj_req->state_mutex | ||
| HALF_LOCKED2 | &parent->header_rwsem | ||
| HALF_LOCKED2 | &rbd_dev->header_rwsem | ||
| TYPE_LOCK | (struct rbd_device)->header_rwsem |
drivers/block/rbd.c rbd_img_object_requests() -> rbd_img_is_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | img_req | 4096-ptr_max |
| PARAM_VALUE | 0 | img_req->obj_request->ex.oe_off | 0-18446744073709551614 |
| PARAM_VALUE | 0 | img_req->obj_request->img_request->rbd_dev->parent->header_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | img_req->pending.num_pending | 0 |
| PARAM_VALUE | 0 | img_req->pending.result | 0 |
| PARAM_VALUE | 0 | img_req->rbd_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | img_req->rbd_dev->header_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->header_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->lock_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->lock_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->parent->header_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->parent->header_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->rbd_client->client->osdc.lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | img_req->state | 2 |
| PARAM_VALUE | 0 | img_req->state_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | img_req->state_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | img_req->state_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | img_req->state_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | img_req->state_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | img_req->state_mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | img_req->state_mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | img_req->state_mutex.wait_lock.owner_cpu | u32max |
| DATA_SOURCE | 0 | img_req | $0 |
| LOCK2 | 0 | &img_req->state_mutex | |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &rbd_dev->lock_rwsem | ||
| TYPE_LOCK | (struct rbd_img_request)->state_mutex |
drivers/block/rbd.c rbd_img_object_requests() -> rbd_img_is_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | img_req | 4096-ptr_max |
| PARAM_VALUE | 0 | img_req->obj_request->ex.oe_off | 0-18446744073709551614 |
| PARAM_VALUE | 0 | img_req->obj_request->img_request->rbd_dev->parent->header_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | img_req->pending.num_pending | 0 |
| PARAM_VALUE | 0 | img_req->pending.result | 0 |
| PARAM_VALUE | 0 | img_req->rbd_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | img_req->rbd_dev->header_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | img_req->rbd_dev->header_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->header_rwsem.first_waiter->list.next | 2212933610777083904 |
| PARAM_VALUE | 0 | img_req->rbd_dev->header_rwsem.first_waiter->list.prev | 2212933610777083904 |
| PARAM_VALUE | 0 | img_req->rbd_dev->header_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->header_rwsem.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | img_req->rbd_dev->header_rwsem.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | img_req->rbd_dev->header_rwsem.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | img_req->rbd_dev->lock_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->lock_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->parent->header_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->parent->header_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->rbd_client->client->osdc.lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | img_req->state | 2 |
| PARAM_VALUE | 0 | img_req->state_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | img_req->state_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | img_req->state_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | img_req->state_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | img_req->state_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | img_req->state_mutex.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | img_req->state_mutex.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | img_req->state_mutex.wait_lock.owner_cpu | u32max |
| DATA_SOURCE | 0 | img_req | $0 |
| LOCK2 | &rbd_dev->header_rwsem | ||
| LOCK2 | 0 | &img_req->state_mutex | |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &rbd_dev->lock_rwsem | ||
| TYPE_LOCK | (struct rbd_device)->header_rwsem | ||
| TYPE_LOCK | (struct rbd_img_request)->state_mutex |
drivers/block/rbd.c rbd_img_request_destroy() -> rbd_img_is_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | img_req | 4096-ptr_max |
| PARAM_VALUE | 0 | img_req->rbd_dev->header_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->header_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->lock_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->lock_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->parent->header_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->parent->header_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->rbd_client->client->osdc.lock.first_waiter->type | 0-1 |
| BUF_SIZE | 0 | img_req->obj_request | (-1),1-s32max |
| CAPPED_DATA | 0 | img_req | 1 |
| CAPPED_DATA | 0 | &img_req->lock_item | 1 |
| CAPPED_DATA | 0 | &img_req->object_extents | 1 |
| DATA_SOURCE | 0 | img_req | $0 |
| USER_DATA | 0 | img_req->pending.result | s32min-(-12),(-10)-(-1),1-s32max[c] |
| NO_OVERFLOW_SIMPLE | 0 | img_req->obj_request->num_img_extents | |
| HALF_LOCKED2 | &obj_req->state_mutex |
drivers/block/rbd.c rbd_obj_read_from_parent() -> rbd_img_is_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | img_req | 4096-ptr_max |
| PARAM_VALUE | 0 | img_req->op_type | 1-4 |
| PARAM_VALUE | 0 | img_req->rbd_dev | 4096-ptr_max |
| PARAM_VALUE | 0 | img_req->rbd_dev->parent | 4096-ptr_max |
| PARAM_VALUE | 0 | img_req->rbd_dev->parent->header_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | img_req->rbd_dev->parent->header_rwsem.first_waiter->handoff_set | 1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->parent->header_rwsem.first_waiter->list.next | 2212933610777083904 |
| PARAM_VALUE | 0 | img_req->rbd_dev->parent->header_rwsem.first_waiter->list.prev | 2212933610777083904 |
| PARAM_VALUE | 0 | img_req->rbd_dev->parent->header_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | img_req->rbd_dev->parent->header_rwsem.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | img_req->rbd_dev->parent->header_rwsem.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | img_req->rbd_dev->parent->header_rwsem.wait_lock.owner_cpu | u32max |
| PREEMPT_ADD | |||
| LOCK2 | &obj_req->state_mutex | ||
| HALF_LOCKED2 | &img_req->state_mutex | ||
| TYPE_LOCK | (struct rbd_obj_request)->state_mutex |
drivers/block/rbd.c rbd_osd_req_callback() -> rbd_img_is_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| HALF_LOCKED2 | &pool->lock |
drivers/block/rbd.c rbd_queue_rq() -> rbd_img_is_write()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | img_req | 4096-ptr_max |
| PARAM_VALUE | 0 | img_req->data_type | 0 |
| PARAM_VALUE | 0 | img_req->flags | 0 |
| PARAM_VALUE | 0 | img_req->obj_request | 0 |
| PARAM_VALUE | 0 | img_req->op_type | 1-4 |
| PARAM_VALUE | 0 | img_req->pending.num_pending | 0 |
| PARAM_VALUE | 0 | img_req->pending.result | 0 |
| PARAM_VALUE | 0 | img_req->snap_id | 0 |
| PARAM_VALUE | 0 | img_req->snapc | 0 |
| PARAM_VALUE | 0 | img_req->state | 0 |
| PARAM_VALUE | 0 | img_req->state_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | img_req->state_mutex.first_waiter | 0 |
| PARAM_VALUE | 0 | img_req->state_mutex.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | img_req->state_mutex.osq.tail.counter | 0 |
| PARAM_VALUE | 0 | img_req->state_mutex.owner.counter | 0 |
| PARAM_VALUE | 0 | img_req->work.data.counter | 0 |
| PARAM_VALUE | 0 | img_req->work.entry.next | 0 |
| PARAM_VALUE | 0 | img_req->work.entry.prev | 0 |
| PARAM_VALUE | 0 | img_req->work.func | 0 |
| PARAM_VALUE | 0 | img_req->work_result | 0 |
| DATA_SOURCE | 0 | img_req | r blk_mq_rq_to_pdu |
| MEM_ZERO | 0 | img_req | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read |