Alexey, thanks for the patch however the description is not simple to understand. I just sent a patch with a description and the test result. On 02/12/2020 12:23 PM, Alexey Dobriyan wrote: > Steps to reproduce: > > BLKRESETZONE zone 0 > > // force EIO > pwrite(fd, buf, 4096, 4096); > > [issue more IO including zone ioctls] > > It will start failing randomly including IO to unrelated zones because of > ->error "reuse". Trigger can be partition detection as well if test is not > run immediately which is even more entertaining. > > The fix is of course to clear ->error where necessary. > > Signed-off-by: Alexey Dobriyan (SK hynix)<adobriyan@xxxxxxxxx> > --- > > drivers/block/null_blk_main.c | 2 ++