Re: regression next-20220714: mkfs.ext4 on multipath device over scsi disks causes 'lifelock' in block layer

Martin K. Petersen
2022-07-19T02:23:39Z

Benjamin,

> # lsblk -D /dev/sda /dev/sde
> NAME DISC-ALN DISC-GRAN DISC-MAX DISC-ZERO
> sda 0 1G 4G 0
> └─mpathc 0 1G 4G 0
> └─mpathc1 0 1G 4G 0
> sde 0 1G 4G 0
> └─mpathc 0 1G 4G 0
> └─mpathc1 0 1G 4G 0

> # lsblk -S /dev/sda /dev/sde
> NAME HCTL TYPE VENDOR MODEL REV SERIAL TRAN
> sda 0:0:0:1079787648 disk IBM 2107900 1060 75DL241805C fc
> sde 1:0:0:1079787648 disk IBM 2107900 1060 75DL241805C fc
>
> Any idea why this is happening? In case you need more details, this
> reproduces very reliably here.

Are the reported discard limits different on kernels predating that
commit?

Please send the output of:

# grep . /sys/block/sdN/queue/discard_* /sys/block/sdN/device/scsi_disk/*/*_mode
# sg_readcap -l /dev/sdN
# sg_vpg -p bl /dev/sdN
# sg_vpg -p lbpv /dev/sdN

Ideally (for the grep) before and after the offending commit.

Thanks!

--
Martin K. Petersen Oracle Linux Engineering