]> git.baikalelectronics.ru Git - kernel.git/commit
dm bufio: fix error code in dm_bufio_write_dirty_buffers()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 12 Jul 2017 07:26:34 +0000 (10:26 +0300)
committerMike Snitzer <snitzer@redhat.com>
Tue, 25 Jul 2017 14:11:15 +0000 (10:11 -0400)
commita6369744ea51c2e364368faa4e6ca8535bfcdd2e
tree07339b26077799f1164e192eadcf2178cd457285
parent5f6712577514cd421fb793bb243ee32df049e8a6
dm bufio: fix error code in dm_bufio_write_dirty_buffers()

We should be returning normal negative error codes here.  The "a"
variables comes from &c->async_write_error which is a blk_status_t
converted to a regular error code.

In the current code, the blk_status_t gets propogated back to
pool_create() and eventually results in an Oops.

Fixes: 10d7729f43f5 ("block: switch bios to blk_status_t")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-bufio.c