Re: [PATCH] blk-cgroup: Pre-allocate tree node on blkg_conf_prep

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 22, 2020 at 02:29:45PM -0400, Gabriel Krisman Bertazi wrote:
> @@ -657,6 +658,8 @@ int blkg_conf_prep(struct blkcg *blkcg, const struct blkcg_policy *pol,
>  			goto fail;
>  		}
>  
> +		preloaded = !radix_tree_preload(GFP_KERNEL);

I think we can just fail the function if GFP_KERNEL preload fails.

Thanks.

-- 
tejun



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [Monitors]

  Powered by Linux