]> git.baikalelectronics.ru Git - kernel.git/commit
nbd: Timeouts are not user requested disconnects
authorMarkus Pargmann <mpa@pengutronix.de>
Thu, 29 Oct 2015 11:01:34 +0000 (12:01 +0100)
committerMarkus Pargmann <mpa@pengutronix.de>
Fri, 5 Feb 2016 07:52:31 +0000 (08:52 +0100)
commit6ca24b03d001aa9d2d7819c57841f4405233f449
tree18fd6dfe7ac100dde20758d667eec116386e3ef8
parent82bc1b36a43879e6cae8a726eb03011c7d872ae3
nbd: Timeouts are not user requested disconnects

It may be useful to know in the client that a connection timed out. The
current code returns success for a timeout.

This patch reports the error code -ETIMEDOUT for a timeout.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
drivers/block/nbd.c