aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorHeinz Mauelshagen <[email protected]>2016-10-10 15:58:32 +0000
committerMike Snitzer <[email protected]>2016-10-14 15:54:10 +0000
commitdcb2ff56417362c31f6b430c3c531a84581e8721 (patch)
tree3fcab8dac06f6f5a2ee3c62c3e2577da403547e5 /net/switchdev/switchdev.c
parentdm raid: fix compat_features validation (diff)
downloadkernel-dcb2ff56417362c31f6b430c3c531a84581e8721.tar.gz
kernel-dcb2ff56417362c31f6b430c3c531a84581e8721.zip
dm mirror: fix read error on recovery after default leg failure
If a default leg has failed, any read will cause a new operational default leg to be selected and the read is resubmitted. But until now the read will return failure even though it was successful due to resubmission. The reason for this is bio->bi_error was not being cleared before resubmitting the bio. Fix by clearing bio->bi_error before resubmission. Fixes: 4246a0b63bd8 ("block: add a bi_error field to struct bio") Cc: [email protected] # 4.3+ Signed-off-by: Heinz Mauelshagen <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions