mbox series

[0/2] Cleanup sd_zbc zone checks.

Message ID 20191220075823.400072-1-damien.lemoal@wdc.com (mailing list archive)
Headers show
Series Cleanup sd_zbc zone checks. | expand

Message

Damien Le Moal Dec. 20, 2019, 7:58 a.m. UTC
A couple of small patches to cleanup sd_zbc zone checks formerly
implemented in sd_zbc_check_zones() and now moved to the block layer as
generic code. The first patch removes a superfluous check present in the
block layer. The second patch renames sd_zbc_check_zones() to be clear
about the function role.

Damien Le Moal (2):
  scsi: sd_zbc: Simplify sd_zbc_check_zones()
  scsi: sd_zbc: Rename sd_zbc_check_zones()

 drivers/scsi/sd_zbc.c | 38 +++++++++++++-------------------------
 1 file changed, 13 insertions(+), 25 deletions(-)

Comments

Martin K. Petersen Jan. 3, 2020, 2:56 a.m. UTC | #1
Damien,

> A couple of small patches to cleanup sd_zbc zone checks formerly
> implemented in sd_zbc_check_zones() and now moved to the block layer as
> generic code. The first patch removes a superfluous check present in the
> block layer. The second patch renames sd_zbc_check_zones() to be clear
> about the function role.

Applied to 5.6/scsi-queue, thanks!