diff options
author | Damien Le Moal <damien.lemoal@wdc.com> | 2020-09-15 16:33:47 +0900 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-09-15 20:08:15 -0400 |
commit | 6c5dee18756b4721ac8518c69b22ee8ac0c9c442 (patch) | |
tree | 91485d0e79b8548fefcb0a29f2ba5e112c0f983e /arch/x86/entry/thunk_32.S | |
parent | 27ba3e8ff3ab86449e63d38a8d623053591e65fa (diff) | |
download | linux-stable-6c5dee18756b4721ac8518c69b22ee8ac0c9c442.tar.gz linux-stable-6c5dee18756b4721ac8518c69b22ee8ac0c9c442.tar.bz2 linux-stable-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/20200915073347.832424-3-damien.lemoal@wdc.com
Fixes: 5795eb443060 ("scsi: sd_zbc: emulate ZONE_APPEND commands")
Cc: <stable@vger.kernel.org> # v5.8+
Reported-by: Borislav Petkov <bp@alien8.de>
Tested-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'arch/x86/entry/thunk_32.S')
0 files changed, 0 insertions, 0 deletions