]> git.baikalelectronics.ru Git - kernel.git/commit
dm rq: change ->rq_end_io calling conventions
authorChristoph Hellwig <hch@lst.de>
Wed, 26 Apr 2017 07:40:37 +0000 (09:40 +0200)
committerMike Snitzer <snitzer@redhat.com>
Mon, 1 May 2017 22:19:03 +0000 (18:19 -0400)
commit4e30f96e28ac46026ea4581ed8a36183eedd54f0
tree91d1d822e1e9c1e04343486df3860b93b9c57836
parent99e263a73421116834214c9ac6aa59bd2e82f450
dm rq: change ->rq_end_io calling conventions

Instead of returning either a DM_ENDIO_* constant or an error code, add
a new DM_ENDIO_DONE value that means keep errno as is.  This allows us
to easily keep the existing error code in case where we can't push back,
and it also preparares for the new block level status codes with strict
type checking.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-mpath.c
drivers/md/dm-rq.c
include/linux/device-mapper.h