]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
raid5: handle register_shrinker failure
authorShaohua Li <shli@fb.com>
Wed, 21 Sep 2016 16:07:13 +0000 (09:07 -0700)
committerShaohua Li <shli@fb.com>
Wed, 21 Sep 2016 16:09:44 +0000 (09:09 -0700)
commit30c8946566f32493f7f1143437319c42c8a542e9
tree465f5ed5d5452d06fec4c415b5ca3742d70c3ac5
parent6a0f53ff351dfd10e74752e57b9c27d3397a3c4d
raid5: handle register_shrinker failure

register_shrinker() now can fail. When it happens, shrinker.nr_deferred is
null. We use it to determine if unregister_shrinker is required.

Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5.c