NeilBrown
a7a3f08dc2
md: close race between removing and adding a device.
...
When we remove a device from an md array, the final removal of
the "dev-XX" sys entry is run asynchronously.
If we then re-add that device immediately before the worker thread
gets to run, we can end up trying to add the "dev-XX" sysfs entry back
before it has been removed.
So in both places where we add a device, call
flush_workqueue(md_misc_wq);
before taking the md lock (as holding the md lock can prevent removal
to complete).
Signed-off-by: NeilBrown <neilb@suse.de >
2012-12-11 13:35:54 +11:00
..
2012-10-12 16:59:47 +01:00
2012-10-11 13:45:36 +11:00
2012-05-22 13:55:34 +10:00
2012-10-12 21:02:13 +01:00
2012-10-12 21:02:13 +01:00
2012-10-12 16:59:46 +01:00
2012-03-28 18:41:29 +01:00
2012-09-09 10:35:39 +02:00
2012-07-27 15:08:16 +01:00
2012-07-27 15:07:59 +01:00
2012-07-27 15:08:16 +01:00
2012-09-09 10:35:38 +02:00
2012-07-27 15:08:16 +01:00
2011-10-31 20:18:58 +00:00
2012-07-27 15:08:16 +01:00
2011-11-06 19:44:47 -08:00
2012-05-10 23:21:39 -04:00
2012-07-30 17:25:16 -07:00
2012-10-12 16:59:42 +01:00
2011-10-31 19:31:18 -04:00
2012-03-28 18:41:26 +01:00
2012-08-20 14:51:24 -07:00
2012-10-11 13:42:19 +11:00
2012-07-20 14:25:03 +01:00
2012-03-28 18:41:26 +01:00
2012-03-28 18:41:26 +01:00
2011-10-31 19:31:19 -04:00
2011-10-31 19:31:19 -04:00
2012-07-27 15:08:16 +01:00
2012-08-20 14:51:24 -07:00
2012-09-26 23:45:45 +01:00
2012-07-27 15:08:15 +01:00
2012-07-27 15:08:15 +01:00
2012-10-12 21:02:13 +01:00
2011-10-31 19:31:19 -04:00
2012-10-12 16:59:46 +01:00
2012-10-12 21:02:15 +01:00
2012-09-26 23:45:45 +01:00
2012-10-22 10:44:55 +11:00
2012-10-12 21:02:13 +01:00
2012-10-11 13:08:44 +11:00
2011-10-11 16:48:54 +11:00
2012-10-12 21:02:13 +01:00
2012-12-11 13:35:54 +11:00
2012-10-11 14:17:59 +11:00
2012-10-11 13:34:00 +11:00
2011-10-11 16:48:57 +11:00
2012-10-11 13:25:44 +11:00
2012-03-19 12:46:39 +11:00
2012-11-27 12:14:40 +11:00
2012-07-31 10:03:53 +10:00
2012-11-22 09:14:13 +11:00
2012-10-11 13:49:05 +11:00
2012-11-27 12:14:40 +11:00
2012-08-18 09:51:42 +10:00