From: Pedro Tammela Date: Fri, 28 Jul 2023 15:35:35 +0000 (-0300) Subject: net/sched: sch_hfsc: warn about class in use while deleting X-Git-Tag: v6.6.17~4098^2~276^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8e4553ef3ed5ea6d58e7ab89955e2a56be4aa4f4;p=platform%2Fkernel%2Flinux-rpi.git net/sched: sch_hfsc: warn about class in use while deleting Add extack to warn that delete was rejected because the class is still in use Acked-by: Jamal Hadi Salim Signed-off-by: Pedro Tammela Reviewed-by: Simon Horman Signed-off-by: Paolo Abeni --- diff --git a/net/sched/sch_hfsc.c b/net/sched/sch_hfsc.c index 896cb40..9880530 100644 --- a/net/sched/sch_hfsc.c +++ b/net/sched/sch_hfsc.c @@ -1094,8 +1094,10 @@ hfsc_delete_class(struct Qdisc *sch, unsigned long arg, struct hfsc_class *cl = (struct hfsc_class *)arg; if (cl->level > 0 || qdisc_class_in_use(&cl->cl_common) || - cl == &q->root) + cl == &q->root) { + NL_SET_ERR_MSG(extack, "HFSC class in use"); return -EBUSY; + } sch_tree_lock(sch);