]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
fs/block_dev.c: Remove WARN_ON() when inode writeback fails
authorVivek Goyal <vgoyal@redhat.com>
Mon, 9 Nov 2015 16:23:40 +0000 (09:23 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 11 Nov 2015 16:36:57 +0000 (09:36 -0700)
commitdbd3ca50753e70e09cad747dce23b1a7683a3342
tree7e41970d124767b0184baae1d339ac2d6995f080
parentc74dc7801d515d01847fd5cf2b472489fa5717b1
fs/block_dev.c: Remove WARN_ON() when inode writeback fails

If a block device is hot removed and later last reference to device
is put, we try to writeback the dirty inode. But device is gone and
that writeback fails.

Currently we do a WARN_ON() which does not seem to be the right thing.
Convert it to a ratelimited kernel warning.

Reported-by: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Acked-by: Tejun Heo <tj@kernel.org>
[jmoyer@redhat.com: get rid of unnecessary name initialization, 80 cols]
Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
fs/block_dev.c