Skip to content
Snippets Groups Projects
Commit ff770422 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Jens Axboe
Browse files

null_blk: fix spurious IO errors after failed past-wp access


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.

Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAlexey Dobriyan (SK hynix) <adobriyan@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 2c272542
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment