Bug 430584 - Strange kernel outputs when ejecting a usb key
Summary: Strange kernel outputs when ejecting a usb key
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Disks & Devices (show other bugs)
Version: 5.20.4
Platform: Mageia RPMs Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 430920 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-12-19 15:02 UTC by Aurélien Oudelet (auroud85_fr)
Modified: 2021-01-05 16:33 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Strange sequence in ejecting USB drive device using Device Notifier Applet (9.18 KB, text/plain)
2020-12-19 15:02 UTC, Aurélien Oudelet (auroud85_fr)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aurélien Oudelet (auroud85_fr) 2020-12-19 15:02:50 UTC
Created attachment 134205 [details]
Strange sequence in ejecting USB drive device using Device Notifier Applet

SUMMARY
Since Plasma 5.20.4, we remark a strange behavior when ejecting a USB disk-based device. Kernel seems complain about missing device while udisks has been ejected it. See attached log.

STEPS TO REPRODUCE
1. Plug a USB-based disk (USB key, USB Harddrive,...)
2. Mount partition while proposed by Disks and Device Notification applet.
3. Open Dolphin.
4. Close Dolphin window.
5. In Disks and Devices Notification applet, click on Remove securely.
6. See system logs.

OBSERVED RESULT
kernel: scsi_io_completion_action: 6 callbacks suppressed
kernel: sd 4:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE cmd_age=0s
kernel: sd 4:0:0:0: [sdb] tag#0 Sense Key : Not Ready [current] 
kernel: sd 4:0:0:0: [sdb] tag#0 Add. Sense: Medium not present
kernel: sd 4:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 01 00
kernel: print_req_error: 6 callbacks suppressed
kernel: blk_update_request: I/O error, dev sdb, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
kernel: buffer_io_error: 54 callbacks suppressed

EXPECTED RESULT
No such errors.

SOFTWARE/OS VERSIONS
Operating System: Mageia 8
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.2
Kernel Version: 5.10.1-desktop-2.mga8
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-6600K CPU @ 3.50GHz
Memory: 15.6 Gio of RAM
Graphics Processor: GeForce GTX 1660 Ti/PCIe/SSE2

ADDITIONAL INFORMATION
USB device seems fine. Files are OK. fsck reports no errors.
Note that using mount/umount as root there is no such errors.
Comment 1 Aurélien Oudelet (auroud85_fr) 2020-12-19 15:05:03 UTC
Distribution bug report: https://bugs.mageia.org/show_bug.cgi?id=27877
Comment 2 Nate Graham 2020-12-19 15:31:44 UTC
Feels like a kernel or middleware bug; I'm not aware of any changes between 5.20.3 and 5.20.4 that could have caused this.

Your other bug report indicates that you upgraded from the 5.9.12 kernel to the 5.10.1 Kernel so I would recommend starting there. Thanks!
Comment 3 Aurélien Oudelet (auroud85_fr) 2020-12-30 18:29:15 UTC
No, after some try,

https://github.com/storaged-project/udisks/issues/827

The issue is really when clicking on Plasma UI, when I want to remove the device, when clicking on "Remove device safely".
Comment 4 David Edmundson 2020-12-30 18:43:57 UTC
>The issue is really when clicking on Plasma UI,

What do you think the issue our side is?
Comment 5 Aurélien Oudelet (auroud85_fr) 2021-01-04 09:56:51 UTC
(In reply to David Edmundson from comment #4)
> >The issue is really when clicking on Plasma UI,
> 
> What do you think the issue our side is?

No, after many strace, the issue is in kernel 5.10, not in Plasma API.
Comment 6 Nate Graham 2021-01-05 16:33:27 UTC
*** Bug 430920 has been marked as a duplicate of this bug. ***