|
@@ -3256,6 +3256,8 @@ static int barrier_all_devices(struct btrfs_fs_info *info)
|
|
|
/* send down all the barriers */
|
|
|
head = &info->fs_devices->devices;
|
|
|
list_for_each_entry_rcu(dev, head, dev_list) {
|
|
|
+ if (dev->missing)
|
|
|
+ continue;
|
|
|
if (!dev->bdev) {
|
|
|
errors_send++;
|
|
|
continue;
|
|
@@ -3270,6 +3272,8 @@ static int barrier_all_devices(struct btrfs_fs_info *info)
|
|
|
|
|
|
/* wait for all the barriers */
|
|
|
list_for_each_entry_rcu(dev, head, dev_list) {
|
|
|
+ if (dev->missing)
|
|
|
+ continue;
|
|
|
if (!dev->bdev) {
|
|
|
errors_wait++;
|
|
|
continue;
|