Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346522
b: refs/heads/master
c: a7a3f08
h: refs/heads/master
v: v3
  • Loading branch information
NeilBrown committed Dec 11, 2012
1 parent 347e822 commit 57a44ab
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1f3c9907b8037de7b9635b0b471572ea8758bcd1
refs/heads/master: a7a3f08dc24690ae00c75cfe4b4701a970dd0155
6 changes: 6 additions & 0 deletions trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -4752,6 +4752,8 @@ md_attr_store(struct kobject *kobj, struct attribute *attr,
}
mddev_get(mddev);
spin_unlock(&all_mddevs_lock);
if (entry->store == new_dev_store)
flush_workqueue(md_misc_wq);
rv = mddev_lock(mddev);
if (!rv) {
rv = entry->store(mddev, page, length);
Expand Down Expand Up @@ -6397,6 +6399,10 @@ static int md_ioctl(struct block_device *bdev, fmode_t mode,
goto abort;
}

if (cmd == ADD_NEW_DISK)
/* need to ensure md_delayed_delete() has completed */
flush_workqueue(md_misc_wq);

err = mddev_lock(mddev);
if (err) {
printk(KERN_INFO
Expand Down

0 comments on commit 57a44ab

Please sign in to comment.