aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-imx.c
diff options
context:
space:
mode:
authorDamien Le Moal <[email protected]>2020-09-15 07:33:47 +0000
committerMartin K. Petersen <[email protected]>2020-09-16 00:08:15 +0000
commit6c5dee18756b4721ac8518c69b22ee8ac0c9c442 (patch)
tree91485d0e79b8548fefcb0a29f2ba5e112c0f983e /drivers/usb/cdns3/cdns3-imx.c
parentscsi: sd: sd_zbc: Fix handling of host-aware ZBC disks (diff)
downloadkernel-6c5dee18756b4721ac8518c69b22ee8ac0c9c442.tar.gz
kernel-6c5dee18756b4721ac8518c69b22ee8ac0c9c442.zip
scsi: sd: sd_zbc: Fix ZBC disk initialization
Make sure to call sd_zbc_init_disk() when the sdkp->zoned field is known, that is, once sd_read_block_characteristics() is executed in sd_revalidate_disk(), so that host-aware disks also get initialized. To do so, move sd_zbc_init_disk() call in sd_zbc_revalidate_zones() and make sure to execute it for all zoned disks, including for host-aware disks used as regular disks as these disk zoned model may be changed back to BLK_ZONED_HA when partitions are deleted. Link: https://lore.kernel.org/r/[email protected] Fixes: 5795eb443060 ("scsi: sd_zbc: emulate ZONE_APPEND commands") Cc: <[email protected]> # v5.8+ Reported-by: Borislav Petkov <[email protected]> Tested-by: Borislav Petkov <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Damien Le Moal <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions