提交 d36fef6f 编写于 作者: B Bartlomiej Zolnierkiewicz

[PATCH] ide-disk: flush cache after calling del_gendisk()

Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
上级 8f29e650
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册