NeilBrown
0909dc448c
md: tidy up error paths in md_alloc
...
As the recent bug in md_alloc showed, having a single exit path for
unlocking and putting is a good idea. So restructure md_alloc to have
a single mutex_unlock and mddev_put, and use gotos where necessary.
Found-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
2009-07-01 12:27:21 +10:00
..
2009-03-31 15:09:39 +11:00
2009-06-11 11:10:35 -07:00
2009-03-31 14:27:03 +11:00
2009-04-02 19:55:23 +01:00
2009-06-22 10:12:33 +01:00
2009-06-22 10:12:33 +01:00
2009-06-22 10:12:15 +01:00
2009-06-22 10:12:14 +01:00
2009-06-22 10:12:26 +01:00
2009-06-22 10:12:36 +01:00
2009-04-09 00:27:17 +01:00
2009-06-22 10:12:33 +01:00
2009-06-22 10:12:35 +01:00
2009-06-22 10:12:35 +01:00
2009-06-22 10:12:35 +01:00
2009-06-22 10:12:33 +01:00
2009-06-22 10:12:37 +01:00
2008-10-10 13:36:58 +01:00
2009-04-02 19:55:27 +01:00
2009-06-22 10:12:27 +01:00
2009-06-22 10:12:27 +01:00
2009-06-22 10:12:33 +01:00
2009-06-22 10:12:13 +01:00
2009-06-22 10:12:27 +01:00
2009-06-22 10:12:28 +01:00
2009-06-22 10:12:26 +01:00
2009-04-02 19:55:35 +01:00
2009-06-22 10:12:25 +01:00
2009-06-22 10:12:33 +01:00
2009-06-22 10:12:29 +01:00
2009-06-22 10:12:36 +01:00
2009-04-02 19:55:28 +01:00
2009-01-06 03:04:58 +00:00
2009-06-22 10:12:37 +01:00
2009-06-22 10:12:36 +01:00
2009-06-18 08:49:23 +10:00
2009-06-22 10:12:35 +01:00
2009-07-01 11:13:45 +10:00
2009-06-18 08:49:42 +10:00
2009-06-22 10:12:35 +01:00
2009-07-01 12:27:21 +10:00
2009-06-18 08:49:23 +10:00
2009-03-31 15:09:39 +11:00
2009-07-01 11:13:45 +10:00
2009-06-16 16:54:21 +10:00
2009-07-01 11:13:45 +10:00
2009-06-16 16:54:21 +10:00
2009-07-01 11:13:45 +10:00
2009-06-16 16:54:21 +10:00
2009-07-01 11:13:45 +10:00
2009-06-18 08:45:55 +10:00
2009-03-31 15:09:39 +11:00
2009-03-31 15:09:39 +11:00
2009-03-31 15:09:39 +11:00
2009-03-31 15:09:39 +11:00
2009-03-31 15:09:39 +11:00
2009-03-31 15:09:39 +11:00
2009-03-31 15:09:39 +11:00
2009-03-31 14:57:37 +11:00
2009-07-01 11:13:45 +10:00
2009-06-16 16:54:21 +10:00