master - [bcache] reverse earlier patch.
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=7e8296f4788d6a83863a268582280587ade2e26c Commit: 7e8296f4788d6a83863a268582280587ade2e26c Parent: 2b3c39e402b966043a65ae649797defb6db597fc Author: Joe Thornber <[email protected]> AuthorDate: Tue Oct 29 15:14:07 2019 +0000 Committer: Joe Thornber <[email protected]> CommitterDate: Tue Oct 29 15:14:07 2019 +0000
[bcache] reverse earlier patch.
It broke some unit tests, for v. little benefit
--- lib/device/bcache.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-)
lib/device/bcache.c +2 -5
@@ -293,10 +293,6 @@ static bool _async_issue(struct io_engine *ioe, enum dir d, int fd,if (r <0 ) {_cb_free (e->cbs, cb); - ((struct block *) context)->error = r; -log_warn ("io_submit <%c> off %llu bytes %llu return %d:%s" , - (d ==DIR_READ ) ?'R' :'W' , (long long unsigned )offset, - (long long unsigned ) nbytes, r,strerror (-r));return false; }
@@ -873,7 +869,8 @@ static void _issue_low_level(struct block *b, enum dir d)dm_list_move (&cache->io_pending, &b->list);if (!cache->engine->issue (cache->engine, d, b->fd, sb, se, b->data, b)) { -_complete_io (b, b->error); +/* FIXME: if io_submit() set an errno, return that instead of EIO? */ +_complete_io (b, -EIO );return ; } }