RE: [EXT] [PATCH] xfrm: Use spin_lock_bh() in xfrm_input()

From: Suman Ghosh
Date: Mon Dec 18 2023 - 06:18:06 EST


>diff --git a/net/xfrm/xfrm_input.c b/net/xfrm/xfrm_input.c index
>bd4ce21d76d7..f4cd46d73b1e 100644
>--- a/net/xfrm/xfrm_input.c
>+++ b/net/xfrm/xfrm_input.c
>@@ -581,7 +581,7 @@ int xfrm_input(struct sk_buff *skb, int nexthdr,
>__be32 spi, int encap_type)
> }
>
> lock:
>- spin_lock(&x->lock);
>+ spin_lock_bh(&x->lock);
[Suman] Hi Zhang,
There is a spin_lock() after label "resume". Don't we need to change it there?
>