[Bug 1762450] Re: [18.04] writing on thumb drives causes hang for write op, shutdown and 'sync' command
[Expired for linux (Ubuntu Bionic) because there has been no activity for 60 days.] ** Changed in: linux (Ubuntu Bionic) Status: Incomplete => Expired -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1762450 Title: [18.04] writing on thumb drives causes hang for write op, shutdown and 'sync' command To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1762450/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1762450] Re: [18.04] writing on thumb drives causes hang for write op, shutdown and 'sync' command
[Expired for linux (Ubuntu) because there has been no activity for 60 days.] ** Changed in: linux (Ubuntu) Status: Incomplete => Expired -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1762450 Title: [18.04] writing on thumb drives causes hang for write op, shutdown and 'sync' command To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1762450/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1762450] Re: [18.04] writing on thumb drives causes hang for write op, shutdown and 'sync' command
Removing the scsi_mod.use_blk_mq=1 from /etc/default/grub and the mentioned udev rule file, and regenerating initial ramdisk + reboot seems to do the trick, now everything works with default (cfq) I/O scheduler. Before this comment, and the problem: # cat /sys/block/sda/queue/scheduler [bfq] none # cat /sys/block/sdb/queue/scheduler [none] bfq After I removed the BFQ specific stuffs and everything worked again: # cat /sys/block/sda/queue/scheduler noop deadline [cfq] # cat /sys/block/sdb/queue/scheduler noop deadline [cfq] So, sorry about the noise, maybe it was my fault ... Interestingly, this setup of mine with BFQ worked in 17.10 on other machines with that kernel parameter and udev rule I mentioned in the previous comment. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1762450 Title: [18.04] writing on thumb drives causes hang for write op, shutdown and 'sync' command To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1762450/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1762450] Re: [18.04] writing on thumb drives causes hang for write op, shutdown and 'sync' command
Ok, I will investigate as soon as I have time. By the way, I am wondering if using BFQ as I/O scheduler can be the problem, ie: # cat /etc/udev/rules.d/60-schedulers.rules ## set noop scheduler for non-rotating disks ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="noop" ## set bfq scheduler for rotating disks ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="bfq" # cat /proc/cmdline BOOT_IMAGE=/boot/vmlinuz-4.15.0-15-generic root=UUID=d203063e-78c0-425a-bee2-0e3ecb4ea74c ro quiet splash scsi_mod.use_blk_mq=1 vt.handoff=1 I guess, I try to remove BFQ specific stuffs as well to see if this fixes the problem. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1762450 Title: [18.04] writing on thumb drives causes hang for write op, shutdown and 'sync' command To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1762450/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1762450] Re: [18.04] writing on thumb drives causes hang for write op, shutdown and 'sync' command
Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.16 kernel[0]. If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'. If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'. Once testing of the upstream kernel is complete, please mark this bug as "Confirmed". Thanks in advance. [0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.16 ** Changed in: linux (Ubuntu) Importance: Undecided => High ** Also affects: linux (Ubuntu Bionic) Importance: High Status: Confirmed ** Tags added: kernel-da-key ** Changed in: linux (Ubuntu Bionic) Status: Confirmed => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1762450 Title: [18.04] writing on thumb drives causes hang for write op, shutdown and 'sync' command To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1762450/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1762450] Re: [18.04] writing on thumb drives causes hang for write op, shutdown and 'sync' command
[22596.884250] sysrq: SysRq : This sysrq operation is disabled. I got this, if I try to trigger those sysreq events by echoing t/m into that procfs file. I'm anyway curious how sysreq stuffs can be enabled/disabled, since I seldom use ALT-SYSREQ- combos as well, and many of them just reports the same as with this procfs trigger: operation is disabled. One thing though: If I attach the thumb drive, everything is fine, lsblk shows it, etc, I can remove it, lsblk does not show it, no problem. The problem seems to have after the first event when I try to write onto the device, then whatever I try even remove thumb drive physically, lsblk still shows it, all the "sync" commands (and anything which tries to write onto) stuck and cannot be killed. So even shutdown of system is problematic at this point. Now I've tried fdisk (btw, no partition on the thumb drive). Just displaying, everything is OK. However after the "w" command the problems begins. By checking the /proc entry for the PID of the fdisk, I see: # cat /proc/11283/status Name: fdisk Umask: 0022 State: D (disk sleep) [...] # cat /proc/11283/stat 11283 (fdisk) D 11084 11283 10324 34827 11283 4194560 673 0 4 0 0 1 0 0 20 0 1 0 2254524 21024768 877 18446744073709551615 94293651558400 94293651671008 140732927217664 0 0 0 0 0 0 1 0 0 17 1 0 0 16 0 0 94293653771504 94293653778500 94293676326912 140732927223610 140732927223625 140732927223625 140732927225836 0 Full output of status file: # cat /proc/11283/status Name: fdisk Umask: 0022 State: D (disk sleep) Tgid: 11283 Ngid: 0 Pid:11283 PPid: 11084 TracerPid: 0 Uid:0 0 0 0 Gid:0 0 0 0 FDSize: 256 Groups: 0 NStgid: 11283 NSpid: 11283 NSpgid: 11283 NSsid: 10324 VmPeak:21568 kB VmSize:20532 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 4176 kB VmRSS: 3508 kB RssAnon: 372 kB RssFile:3136 kB RssShmem: 0 kB VmData: 284 kB VmStk: 132 kB VmExe: 112 kB VmLib: 3144 kB VmPTE:80 kB VmSwap:0 kB HugetlbPages: 0 kB CoreDumping:0 Threads:1 SigQ: 0/13289 SigPnd: ShdPnd: SigBlk: SigIgn: SigCgt: CapInh: CapPrm: 003f CapEff: 003f CapBnd: 003f CapAmb: NoNewPrivs: 0 Seccomp:0 Cpus_allowed: f Cpus_allowed_list: 0-3 Mems_allowed: ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,0001 Mems_allowed_list: 0 voluntary_ctxt_switches:73 nonvoluntary_ctxt_switches: 0 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1762450 Title: [18.04] writing on thumb drives causes hang for write op, shutdown and 'sync' command To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1762450/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1762450] Re: [18.04] writing on thumb drives causes hang for write op, shutdown and 'sync' command
I can't answer what is happening here. But can you obtain more information using SysRq-t and SysRq-m as described at https://akari.osdn.jp/capturing-kernel-messages.html#Tips5 ? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1762450 Title: [18.04] writing on thumb drives causes hang for write op, shutdown and 'sync' command To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1762450/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs