commit | db6bda17b0472c474f1e1b06e62dbde7eea2bee8 | [log] [tgz] |
---|---|---|
author | Josef Bacik <jbacik@fb.com> | Tue Mar 07 15:23:41 2017 -0500 |
committer | Josef Bacik <jbacik@fb.com> | Mon Mar 13 16:08:32 2017 -0400 |
tree | 88ec746c183e49a3059113d2ae798c26b36f8a07 | |
parent | 653bc3b6c86077b38f71a526afa11b7ffb9e8c16 [diff] |
nbd: set rq->errors to actual error code We've been relying on the block layer to assume rq->errors being set translates into -EIO. I noticed in testing that sometimes this isn't true, and really there's not much of a reason to have a counter instead of just using -EIO. So set it properly so we don't leak random numbers to unsuspecting victims. Signed-off-by: Josef Bacik <jbacik@fb.com>