Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-8379

rhel8.7 warning appear when interrupt the blkdiscard on MD raid5

    • sst_logical_storage
    • ssg_platform_storage
    • 5
    • QE ack
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      Description of problem:
      The blkdiscard can not be interrupted (ctrl+c) on the MD raid5 device,if run reboot, a warning will appear

      Version-Release number of selected component (if applicable):
      rhel8

      How reproducible:
      100%

      Steps to Reproduce:
      1.enable trim support of the raid456 module:
      modprobe raid456
      echo Y > /sys/module/raid456/parameters/devices_handle_discard_safely

      2.mdadm -CR /dev/md0 -l5 -n3 /dev/nvme[0-2]n1 --assume-clean

      3.blkdiscard --verbose /dev/md0

      4.reboot

      Actual results:
      warning appear

      Expected results:
      blkdiscard can be interrupted,no warning

      Additional info:

      • ] A stop job is running for Session 4 of user root (2min 59s / 3min)
        [

      • ] A stop job is running for Session 4 of user root (2min 59s / 3min)
        [

      • ] A stop job is running for Session 4 of user root (3min / 3min)

      .
      .
      .

      Rebooting.
      [ 1676.748418] WARNING: CPU: 33 PID: 3176 at drivers/md/md.c:8613 md_write_inc+0x15/0x40
      [ 1676.756246] Modules linked in: raid456 vfat fat isofs cdrom ext4 mbcache jbd2 xt_CHECKSUM ipt_MASQUERADE xt_conntrack ipt_REJECT nf_reject_ipv4 nft_compat nft_counter nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables nfnetlink tun bridge stp llc intel_rapl_msr intel_rapl_common isst_if_common skx_edac nfit libnvdimm x86_pkg_temp_thermal intel_powerclamp coretemp sunrpc kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel async_raid6_recov rapl async_memcpy async_pq iTCO_wdt async_xor intel_cstate iTCO_vendor_support xor async_tx dell_smbios wmi_bmof dell_wmi_descriptor ipmi_ssif dcdbas mei_me acpi_ipmi raid6_pq pcspkr intel_uncore i2c_i801 mei lpc_ich ipmi_si wmi ipmi_devintf ipmi_msghandler acpi_power_meter ip_tables xfs libcrc32c sd_mod sg mgag200 drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops nvme drm ahci nvme_core crc32c_intel libahci megaraid_sas tg3 libata t10_pi i2c_algo_bit dm_mirror dm_region_hash dm_log dm_mod
      [ 1676.756304] [last unloaded: raid456]
      [ 1676.846498] CPU: 33 PID: 3176 Comm: blkdiscard Kdump: loaded Tainted: G I --------- - - 4.18.0-314.el8.x86_64 #1
      [ 1676.857962] Hardware name: Dell Inc. PowerEdge R640/06DKY5, BIOS 2.8.1 06/26/2020
      [ 1676.865441] RIP: 0010:md_write_inc+0x15/0x40
      [ 1676.869714] Code: 6e 6f 6e 65 66 89 46 04 b8 05 00 00 00 c3 0f 1f 80 00 00 00 00 0f 1f 44 00 00 f6 46 10 01 74 29 8b 97 e4 01 00 00 85 d2 74 16 <0f> 0b 48 8b 87 58 03 00 00 a8 03 75 13 65 48 ff 00 e9 b5 42 a5 ff
      [ 1676.888457] RSP: 0018:ffffa6d1c26a3a58 EFLAGS: 00010002
      [ 1676.893683] RAX: ffff899d5411b710 RBX: ffff899d4d9d6000 RCX: dead000000000200
      [ 1676.900817] RDX: 0000000000000001 RSI: ffff899d50303500 RDI: ffff899d5bba9000
      [ 1676.907948] RBP: 0000000000000000 R08: ffff899d4d9d62c0 R09: 0000000000000400
      [ 1676.915079] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffffa5b307d0
      [ 1676.922205] R13: ffff899d50303500 R14: ffff899d5411b498 R15: ffff899d5bba9000
      [ 1676.929338] FS: 00007fb0aae43740(0000) GS:ffff899f37c00000(0000) knlGS:0000000000000000
      [ 1676.937422] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      [ 1676.943170] CR2: 000055576748ae30 CR3: 000000028150c003 CR4: 00000000007706e0
      [ 1676.950300] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
      [ 1676.957435] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
      [ 1676.964564] PKRU: 55555554
      [ 1676.967270] Call Trace:
      [ 1676.969730] raid5_make_request+0x4cb/0xb50 [raid456]
      [ 1676.974788] ? finish_wait+0x80/0x80
      [ 1676.978364] ? finish_wait+0x80/0x80
      [ 1676.981943] ? finish_wait+0x80/0x80
      [ 1676.985522] md_handle_request+0x127/0x1a0
      [ 1676.989624] ? generic_make_request_checks+0x2a7/0x540
      [ 1676.994761] md_make_request+0x84/0x160
      [ 1676.998599] generic_make_request+0xed/0x350
      [ 1677.002872] submit_bio+0x3c/0x160
      [ 1677.006279] blk_next_bio+0x33/0x40
      [ 1677.009769] __blkdev_issue_discard+0x12a/0x260
      [ 1677.014302] blkdev_issue_discard+0x65/0xd0
      [ 1677.018488] ? avc_has_extended_perms+0x182/0x440
      [ 1677.023194] blk_ioctl_discard+0xdd/0x100
      [ 1677.027208] blkdev_common_ioctl+0x257/0x870
      [ 1677.031480] ? __handle_mm_fault+0x4d4/0x800
      [ 1677.035752] blkdev_ioctl+0x182/0x250
      [ 1677.039416] ? selinux_file_ioctl+0x17f/0x220
      [ 1677.043779] block_ioctl+0x39/0x40
      [ 1677.047183] do_vfs_ioctl+0xa4/0x680
      [ 1677.050763] ksys_ioctl+0x60/0x90
      [ 1677.054080] __x64_sys_ioctl+0x16/0x20
      [ 1677.057835] do_syscall_64+0x5b/0x1a0
      [ 1677.061503] entry_SYSCALL_64_after_hwframe+0x65/0xca
      [ 1677.066551] RIP: 0033:0x7fb0aa74a62b
      [ 1677.070130] Code: 0f 1e fa 48 8b 05 5d b8 2c 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 2d b8 2c 00 f7 d8 64 89 01 48
      [ 1677.088876] RSP: 002b:00007ffd72ed5e58 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
      [ 1677.096440] RAX: ffffffffffffffda RBX: 000001bf10400000 RCX: 00007fb0aa74a62b
      [ 1677.103575] RDX: 00007ffd72ed5eb0 RSI: 0000000000001277 RDI: 0000000000000003
      [ 1677.110705] RBP: 0000000000000000 R08: 00007ffd72f841b0 R09: 00000000000599bc
      [ 1677.117839] R10: 00000000000599bc R11: 0000000000000246 R12: 0000000000000000
      [ 1677.124971] R13: 0000000000000003 R14: 00007ffd72ed5eb0 R15: 0000000000000001
      [ 1677.132103] --[ end trace 61ff1d70d4e39edb ]--

            xni@redhat.com Xiao Ni
            czhong@redhat.com Changhui Zhong
            Xiao Ni Xiao Ni
            Changhui Zhong Changhui Zhong
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: