Documented in 2 files:
- kernel/locking/qspinlock.h, line 126
- tools/testing/selftests/bpf/libarena/include/bpf_arena_spin_lock.h, line 173
Defined in 2 files as a member:
- drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h, line 97 (as a member)
- drivers/xen/events/events_internal.h, line 21 (as a member)
Defined in 4 files as a function:
- drivers/md/dm-cache-policy-smq.c, line 1189 (as a function)
- kernel/locking/qspinlock.h, line 86 (as a function)
- kernel/locking/qspinlock.h, line 132 (as a function)
- tools/testing/selftests/bpf/libarena/include/bpf_arena_spin_lock.h, line 179 (as a function)
Referenced in 12 files:
- drivers/md/dm-cache-policy-smq.c
- drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
- drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
- drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c
- drivers/xen/events/events_2l.c, line 370
- drivers/xen/events/events_fifo.c, line 415
- drivers/xen/events/events_internal.h, line 72
- kernel/bpf/rqspinlock.c
- kernel/locking/qspinlock.c, line 202
- kernel/locking/qspinlock_paravirt.h, line 435
- kernel/time/timer.c
- tools/testing/selftests/bpf/libarena/include/bpf_arena_spin_lock.h, line 289
Smatch caller information:
kernel/bpf/rqspinlock.c resilient_queued_spin_lock_slowpath() -> clear_pending()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mq | 4096-ptr_max |
| DATA_SOURCE | 0 | mq | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq_flags |
kernel/bpf/rqspinlock.c resilient_queued_spin_lock_slowpath() -> clear_pending()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mq | 4096-ptr_max |
| DATA_SOURCE | 0 | mq | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | irq_flags |
kernel/locking/qspinlock.c native_queued_spin_lock_slowpath() -> clear_pending()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mq | 4096-ptr_max |
| DATA_SOURCE | 0 | mq | $0 |
| NOCHECK_CALL |
kernel/locking/qspinlock.c pv_wait_head_or_lock() -> clear_pending()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mq | 4096-ptr_max |
| PARAM_VALUE | 0 | mq->pending | 1 |
| DATA_SOURCE | 0 | mq | $0 |
| NOCHECK_CALL |
drivers/md/dm-cache-policy-smq.c __complete_background_work() -> clear_pending()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mq | 4096-ptr_max |
| PARAM_VALUE | 0 | mq->cache_alloc.es | 4096-ptr_max |
| PARAM_VALUE | 0 | mq->cache_alloc.es->end | 4097-u64max |
| PARAM_VALUE | 1 | e | 4096-ptr_max |
| CAPPED_DATA | 1 | e | 1 |
| DATA_SOURCE | 0 | mq | $0 |
| DATA_SOURCE | 1 | e | r get_entry |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | flags | ||
| LOCK2 | 0 | &mq->lock | |
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct smq_policy)->lock |
drivers/md/dm-cache-policy-smq.c __complete_background_work() -> clear_pending()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mq | 4096-ptr_max |
| PARAM_VALUE | 0 | mq->cache_alloc.es | 4096-ptr_max |
| PARAM_VALUE | 0 | mq->cache_alloc.es->end | 4097-u64max |
| PARAM_VALUE | 1 | e | 4096-ptr_max |
| CAPPED_DATA | 1 | e | 1 |
| DATA_SOURCE | 0 | mq | $0 |
| DATA_SOURCE | 1 | e | r get_entry |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | flags | ||
| LOCK2 | 0 | &mq->lock | |
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct smq_policy)->lock |
drivers/md/dm-cache-policy-smq.c __complete_background_work() -> clear_pending()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mq | 4096-ptr_max |
| PARAM_VALUE | 0 | mq->cache_alloc.es | 4096-ptr_max |
| PARAM_VALUE | 0 | mq->cache_alloc.es->end | 4097-u64max |
| PARAM_VALUE | 1 | e | 4096-ptr_max |
| CAPPED_DATA | 1 | e | 1 |
| DATA_SOURCE | 0 | mq | $0 |
| DATA_SOURCE | 1 | e | r get_entry |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | flags | ||
| LOCK2 | 0 | &mq->lock | |
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct smq_policy)->lock |
drivers/md/dm-cache-policy-smq.c queue_demotion() -> clear_pending()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mq | 4096-ptr_max |
| PARAM_VALUE | 0 | mq->bg_work | 4096-ptr_max |
| PARAM_VALUE | 0 | mq->cache_alloc.es | 4096-ptr_max |
| PARAM_VALUE | 0 | mq->cache_alloc.es->begin | 0-ptr_max |
| PARAM_VALUE | 0 | mq->cache_alloc.es->end | 4097-u64max |
| PARAM_VALUE | 0 | mq->cache_alloc.free.head | 268435455 |
| PARAM_VALUE | 0 | mq->clean.es->end | 4097-u64max |
| PARAM_VALUE | 0 | mq->hotspot.nr_levels | 64 |
| PARAM_VALUE | 0 | mq->hotspot_table.buckets | 4096-ptr_max |
| PARAM_VALUE | 0 | mq->migrations_allowed | 1 |
| PARAM_VALUE | 0 | mq->table.buckets | 4096-ptr_max |
| PARAM_VALUE | 1 | e | 4096-ptr_max |
| PARAM_VALUE | 1 | e->allocated | 1 |
| PARAM_VALUE | 1 | e->pending_work | 1 |
| PARAM_VALUE | 1 | e->sentinel | 0 |
| CAPPED_DATA | 0 | mq->bg_work->max_work | 1 |
| CAPPED_DATA | 0 | mq->cache_alloc.es->begin | 1 |
| CAPPED_DATA | 1 | e | 1 |
| DATA_SOURCE | 0 | mq | $0 |
| DATA_SOURCE | 1 | e | r q_peek |
| PARAM_COMPARE | 0 | mq->cache_alloc.es->begin | < $0->cache_alloc.es->end |
| PARAM_COMPARE | 1 | e | < $0->cache_alloc.es->end |
| PARAM_COMPARE | 1 | e | < $0->cache_alloc.es->end |
| PARAM_COMPARE | 1 | e | >= $0->cache_alloc.es->begin |
| PARAM_COMPARE | 1 | e | >= $0->cache_alloc.es->begin |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | flags | ||
| LOCK2 | 0 | &mq->lock | |
| HALF_LOCKED2 | &md->io_barrier | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct smq_policy)->lock |
drivers/md/dm-cache-policy-smq.c queue_writeback() -> clear_pending()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | mq | 4096-ptr_max |
| PARAM_VALUE | 0 | mq->bg_work | 4096-ptr_max |
| PARAM_VALUE | 0 | mq->cache_alloc.es | 4096-ptr_max |
| PARAM_VALUE | 0 | mq->cache_alloc.es->begin | 0-ptr_max |
| PARAM_VALUE | 0 | mq->cache_alloc.es->end | 4097-u64max |
| PARAM_VALUE | 0 | mq->dirty.es->end | 4097-u64max |
| PARAM_VALUE | 1 | e | 4096-ptr_max |
| PARAM_VALUE | 1 | e->allocated | 1 |
| PARAM_VALUE | 1 | e->pending_work | 1 |
| PARAM_VALUE | 1 | e->sentinel | 0 |
| CAPPED_DATA | 0 | mq->bg_work->max_work | 1 |
| CAPPED_DATA | 0 | mq->cache_alloc.es->begin | 1 |
| CAPPED_DATA | 0 | mq->dirty.nr_levels | 1 |
| CAPPED_DATA | 1 | e | 1 |
| DATA_SOURCE | 0 | mq | $0 |
| DATA_SOURCE | 1 | e | r q_peek |
| PARAM_COMPARE | 0 | mq->cache_alloc.es->begin | < $0->cache_alloc.es->end |
| PARAM_COMPARE | 1 | e | < $0->cache_alloc.es->end |
| PARAM_COMPARE | 1 | e | < $0->cache_alloc.es->end |
| PARAM_COMPARE | 1 | e | >= $0->cache_alloc.es->begin |
| PARAM_COMPARE | 1 | e | >= $0->cache_alloc.es->begin |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | flags | ||
| LOCK2 | 0 | &mq->lock | |
| TYPE_LOCK | (struct smq_policy)->lock |