zhendong chen
5164bece16
dm: fix missed error code if .end_io isn't implemented by target_type
...
In bio-based DM's clone_endio(), when target_type doesn't implement
.end_io (e.g. linear) r will be always be initialized 0. So if a
WRITE SAME bio fails WRITE SAME will not be disabled as intended.
Fix this by initializing r to error, rather than 0, in clone_endio().
Signed-off-by: Alex Chen <alex.chen@huawei.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Fixes: 7eee4ae2db ("dm: disable WRITE SAME if it fails")
Cc: stable@vger.kernel.org
2014-12-17 12:31:13 -05:00
..
2014-11-24 08:05:12 -07:00
2014-12-02 10:25:06 -05:00
2014-10-09 10:07:04 +11:00
2013-12-11 15:28:36 -08:00
2014-11-10 15:25:30 -05:00
2014-11-10 15:25:30 -05:00
2013-11-23 22:33:55 -08:00
2014-12-08 21:10:03 -08:00
2014-01-14 23:23:03 -05:00
2014-01-14 23:23:04 -05:00
2014-11-10 15:25:30 -05:00
2014-11-10 15:25:30 -05:00
2014-11-10 15:25:30 -05:00
2013-03-20 17:21:27 +00:00
2013-11-11 11:37:50 -05:00
2014-11-10 15:25:30 -05:00
2014-01-16 13:44:11 -05:00
2014-01-16 13:44:11 -05:00
2014-12-01 11:30:13 -05:00
2014-12-08 21:10:03 -08:00
2014-01-30 11:19:05 -08:00
2014-06-03 13:44:08 -04:00
2012-07-27 15:07:59 +01:00
2010-08-12 04:13:51 +01:00
2013-11-23 22:33:47 -08:00
2014-08-01 12:30:30 -04:00
2014-11-19 12:31:17 -05:00
2013-08-23 09:02:13 -04:00
2013-11-23 22:33:47 -08:00
2014-01-21 23:46:27 -05:00
2014-10-05 20:03:38 -04:00
2009-09-04 20:40:34 +01:00
2012-07-30 17:25:16 -07:00
2014-10-05 20:03:35 -04:00
2008-10-10 13:36:58 +01:00
2011-10-31 19:31:18 -04:00
2009-06-22 10:12:27 +01:00
2012-03-28 18:41:26 +01:00
2014-02-18 10:48:57 -05:00
2014-10-29 14:53:27 -04:00
2013-11-23 22:33:47 -08:00
2012-03-28 18:41:26 +01:00
2012-03-28 18:41:26 +01:00
2014-03-03 17:58:13 -05:00
2011-10-31 19:31:19 -04:00
2014-07-16 15:10:39 +02:00
2014-12-08 21:10:03 -08:00
2013-09-05 20:46:06 -04:00
2014-10-10 22:05:18 -04:00
2014-08-01 12:30:37 -04:00
2014-01-14 23:23:04 -05:00
2014-11-19 11:24:59 -05:00
2013-09-05 20:46:05 -04:00
2014-11-10 15:25:27 -05:00
2014-11-10 15:25:27 -05:00
2014-12-17 12:06:25 -05:00
2011-10-31 19:31:19 -04:00
2007-10-20 02:01:26 +01:00
2014-04-15 12:19:24 -04:00
2014-07-10 16:44:14 -04:00
2014-12-17 12:31:13 -05:00
2014-11-19 12:31:17 -05:00
2013-11-23 22:33:47 -08:00
2014-03-27 16:56:23 -04:00
2014-10-14 13:08:29 +11:00
2011-10-11 16:48:54 +11:00
2014-03-27 16:56:23 -04:00
2014-12-14 12:13:05 -08:00
2014-10-14 13:08:29 +11:00
2014-10-14 13:08:29 +11:00
2011-10-11 16:48:57 +11:00
2014-10-14 13:08:29 +11:00
2012-03-19 12:46:39 +11:00
2014-10-14 13:08:29 +11:00
2014-10-14 13:08:29 +11:00
2014-12-03 16:07:58 +11:00
2014-10-14 13:08:29 +11:00
2014-10-14 13:08:29 +11:00
2013-02-26 11:55:30 +11:00