diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2009-10-29 11:46:12 +0100 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-10-29 11:46:12 +0100 |
commit | 592b09a42fc3ae6737a0f3ecf4fee42ecd0296f8 (patch) | |
tree | d06ca7165c5dfc5224910993b36a50e54a896831 /mm/page-writeback.c | |
parent | 960cc0f4fef607baabc2232fbd7cce5368a9dcfd (diff) | |
download | op-kernel-dev-592b09a42fc3ae6737a0f3ecf4fee42ecd0296f8.zip op-kernel-dev-592b09a42fc3ae6737a0f3ecf4fee42ecd0296f8.tar.gz |
backing-dev: ensure that a removed bdi no longer has super_block referencing it
When the bdi is being removed, we have to ensure that no super_blocks
currently have that cached in sb->s_bdi. Normally this is ensured by
the sb having a longer life span than the bdi, but if the device is
suddenly yanked, we have to kill this reference. sb->s_bdi is pointed
to freed memory at that point.
This fixes a problem with sync(1) hanging when a USB stick is pulled
without cleanly umounting it first.
Reported-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'mm/page-writeback.c')
0 files changed, 0 insertions, 0 deletions