Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 55 files:

Smatch caller information:

drivers/ufs/core/ufshcd.c ufshcd_issue_dev_cmd() -> blk_status_to_errno()

Type Parameter Key Value
DATA_SOURCE 0 status r blk_execute_rq
BIT_INFO 0 status 0x0,0x0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 &hba->clk_scaling_lock
LOCK2 &hba->dev_cmd.lock
TYPE_LOCK (struct ufs_dev_cmd)->lock
TYPE_LOCK (struct ufs_hba)->clk_scaling_lock

drivers/nvdimm/pmem.c pmem_dax_zero_page_range() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 0,10
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &dax_srcu

drivers/block/drbd/drbd_bitmap.c drbd_bm_endio() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 1-255
RX_PATH
TASK_NOT_RUNNING

drivers/md/dm-vdo/packer.c compressed_write_end_io() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/md/dm-vdo/vdo.c continue_vio_after_io() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/md/dm-vdo/vdo.c vdo_synchronous_flush() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/md/dm-vdo/slab-depot.c continue_vio_after_io() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/md/dm-vdo/dedupe.c verify_endio() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

fs/iomap/ioend.c ioend_writeback_end_bio() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/md/md.c md_end_flush() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 1-255
RX_PATH
TASK_NOT_RUNNING

drivers/md/md.c super_written() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 1-255
RX_PATH
TASK_NOT_RUNNING

fs/ocfs2/cluster/heartbeat.c o2hb_bio_end_io() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 1-255
RX_PATH
TASK_NOT_RUNNING

fs/ocfs2/cluster/heartbeat.c o2hb_write_bio_end_io() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 1-255
RX_PATH
TASK_NOT_RUNNING

fs/mpage.c mpage_read_end_io() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

fs/mpage.c mpage_write_end_io() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

fs/f2fs/segment.c f2fs_submit_discard_endio() -> blk_status_to_errno()

Type Parameter Key Value
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dc->lock
LOCK2 flags
TYPE_LOCK (struct discard_cmd)->lock

fs/f2fs/segment.c submit_flush_wait() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

kernel/power/swap.c hib_wait_io() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 0
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &device_hotplug_lock
LOCK2 global &system_transition_mutex
HALF_LOCKED2 &of->mutex

fs/btrfs/inode.c btrfs_encoded_read_endio() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock

fs/btrfs/inode.c btrfs_encoded_read_regular_fill_pages() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 0
CAPABLE 0 21
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &ctx->uring_lock

fs/btrfs/inode.c btrfs_encoded_read_regular_fill_pages() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 0
RX_PATH

fs/btrfs/scrub.c scrub_raid56_cached_parity() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 0

fs/crypto/block.c fscrypt_zeroout_range() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &mapping->invalidate_lock

fs/xfs/xfs_log.c xlog_ioend_work() -> blk_status_to_errno()

Type Parameter Key Value
HALF_LOCKED2 &pool->lock

fs/xfs/xfs_verify_media.c xfs_verify_media_error() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 1-255
DATA_SOURCE 0 status $5
CAPABLE 0 21

fs/ntfs/aops.c ntfs_iomap_read_end_io() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

fs/btrfs/extent_io.c end_bbio_data_write() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock

drivers/block/drbd/drbd_receiver.c one_flush_endio() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 1-255
RX_PATH
TASK_NOT_RUNNING

drivers/md/dm-vdo/recovery-journal.c continue_vio_after_io() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/nvme/host/core.c nvme_alloc_ns_head() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 0-1,3-8,10,14-15
RX_PATH
TASK_NOT_RUNNING
LOCK2 &ctrl->subsys->lock
HALF_LOCKED2 &ctrl->scan_lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct nvme_subsystem)->lock

drivers/nvme/host/core.c nvme_execute_rq() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 0
DATA_SOURCE 0 status r blk_execute_rq
RX_PATH
TASK_NOT_RUNNING

drivers/nvme/host/ioctl.c nvme_uring_cmd_end_io() -> blk_status_to_errno()

Type Parameter Key Value
DATA_SOURCE 0 status $1
RX_PATH
TASK_NOT_RUNNING

fs/xfs/xfs_aops.c xfs_end_io() -> blk_status_to_errno()

Type Parameter Key Value
HALF_LOCKED2 &pool->lock

fs/xfs/xfs_aops.c xfs_end_ioend_write() -> blk_status_to_errno()

Type Parameter Key Value
HALF_LOCKED2 &pool->lock

kernel/trace/blktrace.c blk_add_trace_bio_complete() -> blk_status_to_errno()

Type Parameter Key Value

kernel/trace/blktrace.c blk_add_trace_bio_remap() -> blk_status_to_errno()

Type Parameter Key Value
LOCK2 rcu_read

kernel/trace/blktrace.c blk_add_trace_rq() -> blk_status_to_errno()

Type Parameter Key Value
DATA_SOURCE 0 status $1
LOCK2 rcu_read

kernel/trace/blktrace.c blk_add_trace_split() -> blk_status_to_errno()

Type Parameter Key Value
LOCK2 rcu_read

fs/direct-io.c dio_bio_reap() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &pool->lock

block/ioctl.c bio_cmd_bio_end_io() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 1-255
RX_PATH
TASK_NOT_RUNNING

fs/exfat/iomap.c exfat_iomap_read_end_io() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

fs/xfs/xfs_zone_gc.c xfs_zone_gc_reset_sync() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &fc->uapi_mutex

drivers/md/dm-writecache.c __writecache_endio_pmem() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 1-255
LOCK2 &wc->lock
TYPE_LOCK (struct dm_writecache)->lock

drivers/block/ublk_drv.c ublk_report_zones() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 0
DATA_SOURCE 0 status r blk_execute_rq
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock

block/bio.c submit_bio_wait() -> blk_status_to_errno()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &b->c->verify_lock
HALF_LOCKED2 &b->io_mutex
HALF_LOCKED2 &md->io_barrier
HALF_LOCKED2 &vi->i_rwsem

fs/btrfs/relocation.c copy_remapped_data_io() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &fs_info->remap_mutex
HALF_LOCKED2 &fs_info->reclaim_bgs_lock
HALF_LOCKED2 &fs_info->reclaim_bgs_lock
TYPE_LOCK (struct btrfs_fs_info)->reclaim_bgs_lock
TYPE_LOCK (struct btrfs_fs_info)->remap_mutex

drivers/block/drbd/drbd_worker.c drbd_md_endio() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/block/drbd/drbd_worker.c drbd_request_endio() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

fs/gfs2/lops.c gfs2_end_log_read() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

fs/gfs2/lops.c gfs2_end_log_write() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 1-255
RX_PATH
TASK_NOT_RUNNING

fs/ntfs3/inode.c ntfs_iomap_read_end_io() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

fs/btrfs/disk-io.c btrfs_end_super_write() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 1-255
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read

fs/btrfs/compression.c end_compressed_writeback() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock

drivers/block/zram/zram_drv.c zram_writeback_complete() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
LOCK2 _T->lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/md/dm-pcache/backing_dev.c backing_dev_bio_end() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/md/dm-vdo/block-map.c continue_vio_after_io() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/block/virtio_blk.c virtblk_get_id() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 0-1,10,14-15
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/block/virtio_blk.c virtblk_submit_zone_report() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 0-1,10,14-15
RX_PATH
TASK_NOT_RUNNING
LOCK2 &vblk->vdev_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct virtio_blk)->vdev_mutex

drivers/block/rnbd/rnbd-srv.c rnbd_dev_bi_end_io() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/md/dm-bufio.c new_read() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 1-255
RX_PATH
TASK_NOT_RUNNING

drivers/md/dm-bufio.c write_endio() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 1-255
DATA_SOURCE 0 status $1
RX_PATH
TASK_NOT_RUNNING

block/fops.c __blkdev_direct_IO() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock

block/fops.c __blkdev_direct_IO_simple() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 1-255
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock

block/fops.c blkdev_bio_end_io() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 1-255
RX_PATH
TASK_NOT_RUNNING

block/fops.c blkdev_bio_end_io_async() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 1-255
RX_PATH
TASK_NOT_RUNNING

fs/xfs/xfs_buf.c xfs_buf_bio_end_io() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 1-255
RX_PATH
TASK_NOT_RUNNING

fs/ext4/page-io.c ext4_end_bio() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 1-255
RX_PATH
TASK_NOT_RUNNING

fs/ext4/page-io.c ext4_finish_bio() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 1-255
RX_PATH
TASK_NOT_RUNNING

drivers/md/dm-vdo/repair.c continue_vio_after_io() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/md/dm-vdo/data-vio.c read_endio() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/md/dm-vdo/data-vio.c write_bio_finished() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/md/dm-vdo/io-submitter.c vdo_submit_metadata_vio_wait() -> blk_status_to_errno()

Type Parameter Key Value
HALF_LOCKED2 &md->type_lock

fs/jfs/jfs_metapage.c last_write_complete() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 1-255
DATA_SOURCE 0 status $1
RX_PATH
TASK_NOT_RUNNING

block/bio-integrity-fs.c fs_bio_integrity_verify() -> blk_status_to_errno()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

fs/iomap/direct-io.c iomap_dio_bio_end_io() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 1-255
RX_PATH
TASK_NOT_RUNNING

fs/iomap/direct-io.c iomap_dio_simple_complete() -> blk_status_to_errno()

Type Parameter Key Value
PARAM_VALUE 0 status 1-255
RX_PATH

fs/iomap/bio.c iomap_fail_reads() -> blk_status_to_errno()

Type Parameter Key Value
HALF_LOCKED2 &pool->lock