Sector translation bug in scsi_unmap_complete_noio
check_lba_range expects sectors to be expressed in original qdev blocksize, but scsi_unmap_complete_noio translates them to 512 block sizes, which causes sense errors when discarding larger LBAs in devices using a 4k block size.
I have a small patch to fix, but I'm not sure which mailing list to send, so I've attached it here for now:
scsi_unmap_complete_noio.patch
Thanks.