Files
linux/drivers/block
Alexey Dobriyan fe5b2e54d6 null_blk: fix spurious IO errors after failed past-wp access
[ Upstream commit ff77042296 ]

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: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alexey Dobriyan (SK hynix) <adobriyan@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-17 10:48:39 +02:00
..
2020-02-24 08:34:53 +01:00
2018-05-11 15:08:03 -06:00
2018-06-12 16:19:22 -07:00
2017-02-20 12:16:15 +01:00
2020-02-24 08:34:52 +01:00
2019-12-01 09:16:20 +01:00
2017-08-18 08:45:29 -06:00
2009-03-26 21:15:27 +01:00
2018-11-13 11:08:20 -08:00
2018-06-12 16:19:22 -07:00