diff options
author | Matias Bjørling <m@bjorling.me> | 2016-01-12 07:49:29 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-01-12 08:21:17 -0700 |
commit | 72d256ecc5d0c8cbcc0bd5c6d983b434df556cb4 (patch) | |
tree | b33f8b9f1df32f633f75688d0f89417a3e220296 /drivers/lightnvm/core.c | |
parent | 81e681d3f7424fc2f03b6269e15c63131473c98f (diff) | |
download | linux-72d256ecc5d0c8cbcc0bd5c6d983b434df556cb4.tar.bz2 |
lightnvm: move rq->error to nvm_rq->error
Instead of passing request error into the LightNVM modules, incorporate
it into the nvm_rq.
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/lightnvm/core.c')
-rw-r--r-- | drivers/lightnvm/core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/lightnvm/core.c b/drivers/lightnvm/core.c index cd674af3d17d..dad84ddbefb4 100644 --- a/drivers/lightnvm/core.c +++ b/drivers/lightnvm/core.c @@ -291,7 +291,8 @@ EXPORT_SYMBOL(nvm_erase_ppa); void nvm_end_io(struct nvm_rq *rqd, int error) { - rqd->end_io(rqd, error); + rqd->error = error; + rqd->end_io(rqd); } EXPORT_SYMBOL(nvm_end_io); |