Skip to content

Commit

Permalink
[PATCH] ide-disk: flush cache after calling del_gendisk()
Browse files Browse the repository at this point in the history
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Dec 15, 2005
1 parent 8f29e65 commit d36fef6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/ide/ide-disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1034,12 +1034,12 @@ static int ide_disk_remove(struct device *dev)
struct ide_disk_obj *idkp = drive->driver_data;
struct gendisk *g = idkp->disk;

ide_cacheflush_p(drive);

ide_unregister_subdriver(drive, idkp->driver);

del_gendisk(g);

ide_cacheflush_p(drive);

ide_disk_put(idkp);

return 0;
Expand Down

0 comments on commit d36fef6

Please sign in to comment.