NeilBrown
3763b3c77e
md/raid5: don't record new size if resize_stripes fails.
...
commit 6e9eac2dce upstream.
If any memory allocation in resize_stripes fails we will return
-ENOMEM, but in some cases we update conf->pool_size anyway.
This means that if we try again, the allocations will be assumed
to be larger than they are, and badness results.
So only update pool_size if there is no error.
This bug was introduced in 2.6.17 and the patch is suitable for
-stable.
Fixes: ad01c9e375 ("[PATCH] md: Allow stripes to be expanded in preparation for expanding an array")
Signed-off-by: NeilBrown <neilb@suse.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2015-06-05 23:19:59 -07:00
..
2015-05-17 09:51:33 -07:00
2015-06-05 23:19:58 -07:00
2015-01-16 06:59:01 -08:00
2015-05-13 05:15:41 -07:00
2015-04-29 10:33:59 +02:00
2015-01-29 17:40:56 -08:00
2015-03-26 15:00:58 +01:00
2015-03-18 13:22:34 +01:00
2015-01-29 17:40:56 -08:00
2014-06-26 15:12:37 -04:00
2015-03-06 14:40:48 -08:00
2014-04-14 06:42:15 -07:00
2015-01-29 17:40:57 -08:00
2015-04-19 10:10:49 +02:00
2015-04-29 10:34:01 +02:00
2014-02-13 13:47:59 -08:00
2014-07-06 18:54:15 -07:00
2014-11-21 09:22:53 -08:00
2015-02-05 22:35:40 -08:00
2015-05-17 09:51:32 -07:00
2015-06-05 23:19:53 -07:00
2015-03-18 13:22:35 +01:00
2015-05-13 05:15:43 -07:00
2015-06-05 23:19:54 -07:00
2015-05-06 21:56:27 +02:00
2014-01-09 12:24:21 -08:00
2015-04-19 10:10:49 +02:00
2015-05-06 21:56:27 +02:00
2015-05-06 21:56:24 +02:00
2015-01-16 06:59:01 -08:00
2014-07-28 08:00:06 -07:00
2014-04-14 06:42:18 -07:00
2014-06-07 13:25:34 -07:00
2015-06-05 23:19:54 -07:00
2015-06-05 23:19:59 -07:00
2015-05-06 21:56:27 +02:00
2015-05-06 21:56:28 +02:00
2014-10-30 09:35:10 -07:00
2015-01-08 09:58:15 -08:00
2014-11-21 09:22:55 -08:00
2015-06-05 23:19:57 -07:00
2015-05-13 05:15:43 -07:00
2015-06-05 23:19:58 -07:00
2014-10-05 14:54:12 -07:00
2014-12-06 15:05:47 -08:00
2015-05-06 21:56:26 +02:00
2015-03-06 14:40:48 -08:00
2015-05-17 09:51:33 -07:00
2015-01-27 07:52:31 -08:00
2014-03-23 21:38:22 -07:00
2015-05-06 21:56:21 +02:00
2014-08-07 14:30:25 -07:00
2015-03-26 15:00:59 +01:00
2014-06-26 15:12:37 -04:00
2015-01-29 17:40:57 -08:00
2014-08-14 09:24:16 +08:00
2015-05-13 05:15:42 -07:00
2015-05-06 21:56:21 +02:00
2015-06-05 23:19:53 -07:00
2015-06-05 23:19:55 -07:00
2015-05-17 09:51:32 -07:00
2015-06-05 23:19:57 -07:00
2015-01-27 07:52:32 -08:00
2015-02-05 22:35:40 -08:00
2015-05-06 21:56:25 +02:00
2014-11-14 08:47:55 -08:00
2014-02-22 12:41:28 -08:00
2014-05-06 07:55:28 -07:00
2014-07-06 18:54:14 -07:00
2015-03-26 15:00:59 +01:00