]> git.karo-electronics.de Git - karo-tx-linux.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)
commit1f7b5cf1be4351e60cf8ae7aab976503dd73c5f8
tree18fd6dfe7ac100dde20758d667eec116386e3ef8
parent23272a6754b81ff6503e09c743bb4ceeeab39997
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