Run udev_settle() after swapon/swapoff (RHBZ#516096).
authorRichard Jones <rjones@redhat.com>
Wed, 12 May 2010 15:12:07 +0000 (16:12 +0100)
committerRichard Jones <rjones@redhat.com>
Wed, 12 May 2010 15:13:07 +0000 (16:13 +0100)
daemon/swap.c

index 67d553a..f22f2de 100644 (file)
@@ -122,6 +122,11 @@ swaponoff (const char *cmd, const char *flag, const char *value)
 
   free (err);
 
+  /* Possible fix for RHBZ#516096.  It probably doesn't hurt to do
+   * this in any case.
+   */
+  udev_settle ();
+
   return 0;
 }