[Regression] [Bisected] Errors when ejecting USB storage drives since v5.10

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Since v5.10 ejecting removable USB devices on my desktop has resulted
in the kernel throwing errors and not cleanly unmounting the drives
(dirty bit is set upon remounting).

I have bisected this issue to commit 471bd0af544b ("sd: use
bdev_check_media_change"), and have confirmed the problem is still
present as of v5.11-rc7. It appears that several others have run into
this issue, as I see that there was a bugzilla report filed a month
ago [1]. There was also a bug report filed against udisks [2], and it
looks like they believe it is also a kernel issue.

Steps to reproduce the problem:
1. Insert removable USB storage device.
2. Use eject(1) to attempt to eject the USB device. (e.g. # eject /dev/sdd)

Example result:
[42006.656393] sd 8:0:0:1: [sdd] tag#0 FAILED Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE cmd_age=0s
[42006.656402] sd 8:0:0:1: [sdd] tag#0 Sense Key : Not Ready [current]
[42006.656406] sd 8:0:0:1: [sdd] tag#0 Add. Sense: Medium not present
[42006.656411] sd 8:0:0:1: [sdd] tag#0 CDB: Read(10) 28 00 00 00 00 00
00 00 08 00
[42006.656413] blk_update_request: I/O error, dev sdd, sector 0 op
0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[42006.656420] Buffer I/O error on dev sdd, logical block 0, async page read
[42006.657520] sd 8:0:0:1: [sdd] tag#0 FAILED Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE cmd_age=0s
[42006.657528] sd 8:0:0:1: [sdd] tag#0 Sense Key : Not Ready [current]
[42006.657531] sd 8:0:0:1: [sdd] tag#0 Add. Sense: Medium not present
[42006.657535] sd 8:0:0:1: [sdd] tag#0 CDB: Read(10) 28 00 00 00 00 00
00 00 08 00
[42006.657537] blk_update_request: I/O error, dev sdd, sector 0 op
0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[42006.657544] Buffer I/O error on dev sdd, logical block 0, async page read
[42006.658490] sd 8:0:0:1: [sdd] tag#0 FAILED Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE cmd_age=0s
[42006.658492] sd 8:0:0:1: [sdd] tag#0 Sense Key : Not Ready [current]
[42006.658494] sd 8:0:0:1: [sdd] tag#0 Add. Sense: Medium not present
[42006.658496] sd 8:0:0:1: [sdd] tag#0 CDB: Read(10) 28 00 00 00 00 00
00 00 08 00
[42006.658497] blk_update_request: I/O error, dev sdd, sector 0 op
0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[42006.658499] Buffer I/O error on dev sdd, logical block 0, async page read
[42006.658505] ldm_validate_partition_table(): Disk read failed.
[42006.659490] sd 8:0:0:1: [sdd] tag#0 FAILED Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE cmd_age=0s
[42006.659492] sd 8:0:0:1: [sdd] tag#0 Sense Key : Not Ready [current]
[42006.659494] sd 8:0:0:1: [sdd] tag#0 Add. Sense: Medium not present
[42006.659496] sd 8:0:0:1: [sdd] tag#0 CDB: Read(10) 28 00 00 00 00 00
00 00 08 00
[42006.659497] blk_update_request: I/O error, dev sdd, sector 0 op
0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[42006.659499] Buffer I/O error on dev sdd, logical block 0, async page read
[42006.661000] sd 8:0:0:1: [sdd] tag#0 FAILED Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE cmd_age=0s
[42006.661003] sd 8:0:0:1: [sdd] tag#0 Sense Key : Not Ready [current]
[42006.661005] sd 8:0:0:1: [sdd] tag#0 Add. Sense: Medium not present
[42006.661006] sd 8:0:0:1: [sdd] tag#0 CDB: Read(10) 28 00 00 00 00 00
00 00 08 00
[42006.661007] blk_update_request: I/O error, dev sdd, sector 0 op
0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[42006.661010] Buffer I/O error on dev sdd, logical block 0, async page read
[42006.662002] sd 8:0:0:1: [sdd] tag#0 FAILED Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE cmd_age=0s
[42006.662006] sd 8:0:0:1: [sdd] tag#0 Sense Key : Not Ready [current]
[42006.662007] sd 8:0:0:1: [sdd] tag#0 Add. Sense: Medium not present
[42006.662009] sd 8:0:0:1: [sdd] tag#0 CDB: Read(10) 28 00 00 00 00 00
00 00 08 00
[42006.662010] blk_update_request: I/O error, dev sdd, sector 0 op
0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[42006.662013] Buffer I/O error on dev sdd, logical block 0, async page read
[42006.663050] sd 8:0:0:1: [sdd] tag#0 FAILED Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE cmd_age=0s
[42006.663053] sd 8:0:0:1: [sdd] tag#0 Sense Key : Not Ready [current]
[42006.663054] sd 8:0:0:1: [sdd] tag#0 Add. Sense: Medium not present
[42006.663055] sd 8:0:0:1: [sdd] tag#0 CDB: Read(10) 28 00 00 00 00 00
00 00 08 00
[42006.663056] blk_update_request: I/O error, dev sdd, sector 0 op
0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[42006.663059] Buffer I/O error on dev sdd, logical block 0, async page read
[42006.663068] Dev sdd: unable to read RDB block 0
[42006.663993] sd 8:0:0:1: [sdd] tag#0 FAILED Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE cmd_age=0s
[42006.663995] sd 8:0:0:1: [sdd] tag#0 Sense Key : Not Ready [current]
[42006.663997] sd 8:0:0:1: [sdd] tag#0 Add. Sense: Medium not present
[42006.663998] sd 8:0:0:1: [sdd] tag#0 CDB: Read(10) 28 00 00 00 00 00
00 00 08 00
[42006.663999] blk_update_request: I/O error, dev sdd, sector 0 op
0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[42006.664001] Buffer I/O error on dev sdd, logical block 0, async page read
[42006.665000] sd 8:0:0:1: [sdd] tag#0 FAILED Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE cmd_age=0s
[42006.665003] sd 8:0:0:1: [sdd] tag#0 Sense Key : Not Ready [current]
[42006.665004] sd 8:0:0:1: [sdd] tag#0 Add. Sense: Medium not present
[42006.665006] sd 8:0:0:1: [sdd] tag#0 CDB: Read(10) 28 00 00 00 00 00
00 00 08 00
[42006.665007] blk_update_request: I/O error, dev sdd, sector 0 op
0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[42006.665009] Buffer I/O error on dev sdd, logical block 0, async page read
[42006.665019]  sdd: unable to read partition table
[42006.668496] sdd: detected capacity change from 0 to 62333952

Please cc me on replies as I am not subscribed to the block mailing list.

[1] https://bugzilla.kernel.org/show_bug.cgi?id=211023
[2] https://github.com/storaged-project/udisks/issues/827




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux