On Wed, Apr 16, 2014 at 05:02:32PM +0800, Qu Wenruo wrote: > @@ -1704,10 +1720,14 @@ int btrfs_rm_device(struct btrfs_root *root, char > *device_path) > > ret = 0; > > - /* Notify udev that device has changed */ > - if (bdev) > + if (bdev) { > + /* Notify udev that device has changed */ > btrfs_kobject_uevent(bdev, KOBJ_CHANGE); > > + /* Update ctime/mtime for device path for libblkid */ > + update_dev_time(device_path);
The change on the device comes after the uevent notification, is it possible that the event is delivered and processed before the device times are updated? I would say so. > + } > + > error_brelse: > brelse(bh); > if (bdev) -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html