mbox series

[0/2] null_blk cleanup and fix

Message ID 20200330040116.178731-1-damien.lemoal@wdc.com (mailing list archive)
Headers show
Series null_blk cleanup and fix | expand

Message

Damien Le Moal March 30, 2020, 4:01 a.m. UTC
Jens,

The first patch of this series, extracted as is from Johannes series
for REQ_OP_ZONE_APPEND support cleans up null_blk zoned device
initialization. The reviewed tag from Christoph sent for the patch
within Johannes post is included here.

The second patch extracts and extends a fix included in the zonne
append series to correctly handle writes to null_blk zoned devices.
The fix forces zone type and zone condition checks to be executed
before the generic null_blk bad block and memory backing options
handling. The fix also makes sure that a zone write pointer position
is updated only if these two generic operations are executed
successfully.

Please consider these patches for inclusion in 5.7.

Damien Le Moal (2):
  null_blk: Cleanup zoned device initialization
  block: null_blk: Fix zoned command handling

 drivers/block/null_blk.h       | 37 +++++++++++++++++++++---
 drivers/block/null_blk_main.c  | 51 ++++++++++++----------------------
 drivers/block/null_blk_zoned.c | 37 ++++++++++++++++++------
 3 files changed, 79 insertions(+), 46 deletions(-)