Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218906
b: refs/heads/master
c: 5ad21a3
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo authored and Jens Axboe committed Oct 28, 2010
1 parent 4d6c1d3 commit f022378
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2027ae1fa914640c287171035cb607a03ad36e95
refs/heads/master: 5ad21a337420e82bffb7836ab34027dd7ad624b8
4 changes: 1 addition & 3 deletions trunk/drivers/block/aoe/aoedev.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ aoedev_freedev(struct aoedev *d)
{
struct aoetgt **t, **e;

cancel_work_sync(&d->work);
if (d->gd) {
aoedisk_rm_sysfs(d);
del_gendisk(d->gd);
Expand Down Expand Up @@ -135,7 +136,6 @@ aoedev_flush(const char __user *str, size_t cnt)
all = !strncmp(buf, "all", 3);
}

flush_scheduled_work();
spin_lock_irqsave(&devlist_lock, flags);
dd = &devlist;
while ((d = *dd)) {
Expand Down Expand Up @@ -257,8 +257,6 @@ aoedev_exit(void)
struct aoedev *d;
ulong flags;

flush_scheduled_work();

while ((d = devlist)) {
devlist = d->next;

Expand Down

0 comments on commit f022378

Please sign in to comment.