Skip to content

Having issue stopping cache with latest kernel #1764

@sjoshi10

Description

@sjoshi10

Description

I am having an issue where when I run casadm --stop-cache -i 1 --no-data-flush, it hangs without any output. This is only having an issue with kernel version 6.8.0-111-generic

Expected Behavior

I should be able to stop cache without any issues.

Actual Behavior

Running casadm --stop-cache -i 1 --no-data-flush hangs

Steps to Reproduce

Upgrade to kernel 6.8.0-111-generic and create cache with origin.

casadm -L
type    id   disk        status    write policy   device
cache   1    /dev/dm-0   Running   wb             -
└core   1    /dev/dm-1   Active    -              /dev/cas1-1

Run this command casadm --stop-cache -i 1 --no-data-flush

Context

I am not able to stop cache.

Logs

Call Trace:
[ 1985.725031]  <TASK>
[ 1985.727415]  blk_mq_destroy_queue+0x59/0x80
[ 1985.732140]  cas_exp_obj_destroy+0x90/0xe0 [cas_cache]
[ 1985.737945]  kcas_core_destroy_exported_object+0x67/0xb0 [cas_cache]
[ 1985.745116]  _cache_mngt_remove_core_prepare+0x46/0x210 [cas_cache]
[ 1985.752187]  ? snprintf+0x51/0x80
[ 1985.755935]  ? ocf_core_get_by_name+0x4d/0xf0 [cas_cache]
[ 1985.762034]  cache_mngt_remove_core_from_cache+0x1cf/0x380 [cas_cache]
[ 1985.769396]  cas_service_ioctl_ctrl+0x2f2/0x3930 [cas_cache]
[ 1985.775785]  ? __audit_syscall_exit+0xd1/0x140
[ 1985.780803]  ? syscall_exit_work+0x12b/0x150
[ 1985.785626]  ? __ct_user_enter+0x32/0x100
[ 1985.790152]  ? syscall_exit_to_user_mode+0x10f/0x1e0
[ 1985.795757]  ? do_syscall_64+0x8c/0x180
[ 1985.800089]  __x64_sys_ioctl+0xa0/0xf0
[ 1985.804330]  x64_sys_call+0x12a3/0x25a0
[ 1985.808663]  do_syscall_64+0x7f/0x180
[ 1985.812803]  ? set_ptes.isra.0+0x21/0xa0
[ 1985.817231]  ? do_anonymous_page+0x1a3/0x430
[ 1985.822043]  ? handle_pte_fault+0x1cb/0x1d0
[ 1985.826758]  ? __handle_mm_fault+0x654/0x790
[ 1985.831576]  ? __count_memcg_events+0x6b/0x120
[ 1985.836594]  ? count_memcg_events.constprop.0+0x2a/0x50
[ 1985.842487]  ? handle_mm_fault+0xad/0x380
[ 1985.847015]  ? __ct_user_enter+0x32/0x100
[ 1985.851542]  ? irqentry_exit_to_user_mode+0x104/0x1e0
[ 1985.857244]  ? irqentry_exit+0x43/0x50
[ 1985.861593]  ? exc_page_fault+0x94/0x1b0
[ 1985.866118]  entry_SYSCALL_64_after_hwframe+0x78/0x80

Your Environment

  • OpenCAS version (commit hash or tag): 26.03.1.0000.main
  • Operating System: Ubuntu 24.04
  • Kernel version: 6.8.0-111-generic
  • Cache device type (NAND/Optane/other): NVME
  • Core device type (HDD/SSD/other): NFS
  • Cache configuration:
    • Cache mode: wb
    • Cache line size: 4
    • Promotion policy: (default: always)
    • Cleaning policy: alru
    • Sequential cutoff policy: (default: full)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions