bpf: Enable sleeptable support for cgrp local storage

Similar to sk/inode/task local storage, enable sleepable support for
cgrp local storage.

Signed-off-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/r/20221201050444.2785007-1-yhs@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
Yonghong Song 2022-11-30 21:04:44 -08:00 committed by Alexei Starovoitov
parent 8972e18a43
commit 2c40d97da1

View File

@ -14154,10 +14154,11 @@ static int check_map_prog_compatibility(struct bpf_verifier_env *env,
case BPF_MAP_TYPE_INODE_STORAGE:
case BPF_MAP_TYPE_SK_STORAGE:
case BPF_MAP_TYPE_TASK_STORAGE:
case BPF_MAP_TYPE_CGRP_STORAGE:
break;
default:
verbose(env,
"Sleepable programs can only use array, hash, and ringbuf maps\n");
"Sleepable programs can only use array, hash, ringbuf and local storage maps\n");
return -EINVAL;
}