]> git.baikalelectronics.ru Git - kernel.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)
commite261021c7415f4acb5c7a5ed93e8475be630aa47
tree7e41970d124767b0184baae1d339ac2d6995f080
parentb71090d67267fcd31242aa16ff333df62f4dffe3
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