diff options
author | Jens Axboe <axboe@kernel.dk> | 2017-12-21 20:01:30 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-12-21 20:01:30 +0300 |
commit | 6d0e4827b72afc71349784336d5eb6df4df106e6 (patch) | |
tree | a6809e9789214d2cfd19e9c80031ae5a39fa3431 /mm | |
parent | 0864fe09ab90ab32b7d21fe3cd72df5b5af8492e (diff) | |
download | linux-6d0e4827b72afc71349784336d5eb6df4df106e6.tar.xz |
Revert "bdi: add error handle for bdi_debug_register"
This reverts commit a0747a859ef6d3cc5b6cd50eb694499b78dd0025.
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>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/backing-dev.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mm/backing-dev.c b/mm/backing-dev.c index 84b2dc76f140..b5f940ce0143 100644 --- a/mm/backing-dev.c +++ b/mm/backing-dev.c @@ -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); |