Files
i2som-imx-linux/include/linux
Paul Clements 50e97121b7 nbd: correct disconnect behavior
commit c378f70adb upstream.

Currently, when a disconnect is requested by the user (via NBD_DISCONNECT
ioctl) the return from NBD_DO_IT is undefined (it is usually one of
several error codes).  This means that nbd-client does not know if a
manual disconnect was performed or whether a network error occurred.
Because of this, nbd-client's persist mode (which tries to reconnect after
error, but not after manual disconnect) does not always work correctly.

This change fixes this by causing NBD_DO_IT to always return 0 if a user
requests a disconnect.  This means that nbd-client can correctly either
persist the connection (if an error occurred) or disconnect (if the user
requested it).

Signed-off-by: Paul Clements <paul.clements@steeleye.com>
Acked-by: Rob Landley <rob@landley.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
[xr: Backported to 3.4: adjust context]
Signed-off-by: Rui Xiang <rui.xiang@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-03-11 16:10:06 -07:00
..
2012-11-26 11:38:03 -08:00
2012-04-23 14:23:32 +03:00
2013-12-04 10:50:29 -08:00
2012-04-27 11:03:38 -06:00
2012-11-17 13:16:12 -08:00
2012-03-29 15:38:31 +10:30
2012-03-23 16:58:38 -07:00
2012-04-12 12:57:08 +02:00
2012-04-27 10:46:45 +08:00
2012-03-26 21:47:19 +02:00
2012-03-26 21:47:19 +02:00
2012-03-26 21:47:19 +02:00
2012-03-26 21:47:19 +02:00
2012-03-26 21:47:19 +02:00
2012-03-26 21:47:19 +02:00
2012-03-27 22:45:26 -04:00
2013-07-28 16:25:59 -07:00
2012-10-02 10:30:35 -07:00
2012-08-15 08:10:29 -07:00
2012-07-19 08:59:00 -07:00
2013-04-16 21:27:26 -07:00
2012-10-02 10:30:05 -07:00
2012-12-17 10:37:42 -08:00
2014-03-11 16:10:06 -07:00
2014-01-15 15:27:11 -08:00
2012-03-28 18:30:03 +01:00
2013-01-11 09:07:15 -08:00
2012-07-16 09:04:42 -07:00
2012-03-28 18:30:03 +01:00
2012-04-10 22:39:17 -06:00
2013-04-05 10:04:40 -07:00
2012-04-11 09:36:00 +01:00
2013-08-04 16:26:03 +08:00