All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Fix handling of host-aware ZBC disks
@ 2020-09-14  0:34 Damien Le Moal
  2020-09-14  0:34 ` [PATCH v2 1/2] scsi: " Damien Le Moal
  2020-09-14  0:34 ` [PATCH v2 2/2] scsi: Fix ZBC disk initialization Damien Le Moal
  0 siblings, 2 replies; 7+ messages in thread
From: Damien Le Moal @ 2020-09-14  0:34 UTC (permalink / raw)
  To: linux-scsi, Martin K . Petersen, Borislav Petkov
  Cc: linux-block, Jens Axboe, Johannes Thumshirn

Martin,

Two patches for this cycle (with a cc stable) to fix handling of
host-aware ZBC disks that have partitions, that is, used as regular
disks.

The first patch fixes host-aware disk initialization and command
completion processing. It also enables the use of host-aware disks as
regular disks when CONFIG_BLK_DEV_ZONED is disabled.

The second patch fixes the CONFIG_BLK_DEV_ZONED enabled configuration
so that zone append emulation is not initialized for host-aware disks
with partitions/used as regular disks. While at it, this patch also
removes a problem with sd_zbc_init_disk() error handling in
sd_revalidate_disk() by moving this function execution inside
sd_zbc_revalidate_zones().

Borislav tested the series and confirmed that it solves his problem
(thanks Borislav !)

Changes from v1:
* Rebased on rc5
* Use "if (IS_DEFINED())" instead of #ifdef in patch 1

Damien Le Moal (2):
  scsi: Fix handling of host-aware ZBC disks
  scsi: Fix ZBC disk initialization

 drivers/scsi/sd.c     | 32 ++++++++++++++-------
 drivers/scsi/sd.h     |  8 +-----
 drivers/scsi/sd_zbc.c | 66 ++++++++++++++++++++++++++-----------------
 3 files changed, 63 insertions(+), 43 deletions(-)

-- 
2.26.2


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-09-14 23:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-14  0:34 [PATCH v2 0/2] Fix handling of host-aware ZBC disks Damien Le Moal
2020-09-14  0:34 ` [PATCH v2 1/2] scsi: " Damien Le Moal
2020-09-14  7:20   ` Christoph Hellwig
2020-09-14  9:03     ` Damien Le Moal
2020-09-14 14:20       ` hch
2020-09-14 23:26         ` Damien Le Moal
2020-09-14  0:34 ` [PATCH v2 2/2] scsi: Fix ZBC disk initialization Damien Le Moal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.