Defined in 1 files as a function:

Referenced in 8 files:

Smatch caller information:

drivers/scsi/mpt3sas/mpt3sas_scsih.c scsih_dev_reset() -> scsi_device_busy()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
UNITS 0 sdev unit_byte

drivers/ufs/core/ufshcd.c ufshcd_pending_cmds() -> scsi_device_busy()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
CAPPED_DATA 0 &sdev->siblings 1
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &hba->clk_scaling_lock
LOCK2 &hba->host->scan_mutex
LOCK2 flags
LOCK2 hba->host->host_lock
HALF_LOCKED2 &hba->host_sem
HALF_LOCKED2 &hba->wb_mutex
TYPE_LOCK (struct Scsi_Host)->scan_mutex
TYPE_LOCK (struct ufs_hba)->clk_scaling_lock

drivers/scsi/scsi_debug.c schedule_resp() -> scsi_device_busy()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sdev unit_byte
HALF_LOCKED2 &sdev->state_mutex

drivers/scsi/scsi_sysfs.c sdev_show_device_busy() -> scsi_device_busy()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/scsi/sg.c sg_proc_seq_show_dev() -> scsi_device_busy()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sdev unit_byte
LOCK2 &s->lock
LOCK2 global &sg_index_lock
LOCK2 iflags
TYPE_LOCK (struct seq_file)->lock

drivers/scsi/mpt3sas/mpt3sas_base.c _base_get_high_iops_msix_index() -> scsi_device_busy()

Type Parameter Key Value
UNITS 0 sdev unit_byte

drivers/scsi/scsi_lib.c scsi_dev_queue_ready() -> scsi_device_busy()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
PARAM_VALUE 0 sdev->budget_map.map 1-u64max
BUF_SIZE 0 sdev 736,792,816,1000-s32max
BUF_SIZE 0 sdev 736,792,816,1000-s32max
CAPPED_DATA 0 sdev->budget_map.depth 1
DATA_SOURCE 0 sdev $1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 __tag_set->srcu
HALF_LOCKED2 rcu_read

drivers/scsi/scsi_lib.c scsi_device_is_busy() -> scsi_device_busy()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
BUF_SIZE 0 sdev 736,792,816,1000-s32max
BUF_SIZE 0 sdev 736,792,816,1000-s32max
DATA_SOURCE 0 sdev $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 __tag_set->srcu
HALF_LOCKED2 rcu_read

drivers/scsi/scsi_lib.c scsi_mq_get_budget() -> scsi_device_busy()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
PARAM_VALUE 0 sdev->budget_map.map 1-u64max
BUF_SIZE 0 sdev 128,736,792,816,1000-s32max
BUF_SIZE 0 sdev 128,736,792,816,1000-s32max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 sdev unit_byte
HALF_LOCKED2 __tag_set->srcu
HALF_LOCKED2 rcu_read

drivers/message/fusion/mptsas.c mptsas_send_link_status_event() -> scsi_device_busy()

Type Parameter Key Value
PARAM_VALUE 0 sdev 4096-ptr_max
HALF_LOCKED2 &pool->lock