Skip to content

Commit

Permalink
Revert "bdi: add error handle for bdi_debug_register"
Browse files Browse the repository at this point in the history
This reverts commit a0747a8.

It breaks some booting for some users, and more than a week
into this, there's still no good fix. Revert this commit
for now until a solution has been found.

Reported-by: Laura Abbott <labbott@redhat.com>
Reported-by: Bruno Wolff III <bruno@wolff.to>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Jens Axboe committed Dec 21, 2017
1 parent 0864fe0 commit 6d0e482
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mm/backing-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -882,13 +882,10 @@ int bdi_register_va(struct backing_dev_info *bdi, const char *fmt, va_list args)
if (IS_ERR(dev))
return PTR_ERR(dev);

if (bdi_debug_register(bdi, dev_name(dev))) {
device_destroy(bdi_class, dev->devt);
return -ENOMEM;
}
cgwb_bdi_register(bdi);
bdi->dev = dev;

bdi_debug_register(bdi, dev_name(dev));
set_bit(WB_registered, &bdi->wb.state);

spin_lock_bh(&bdi_lock);
Expand Down

0 comments on commit 6d0e482

Please sign in to comment.