xfrm: move the checking for old xfrm_policy hold_queue to beginning
authorLi RongQing <roy.qing.li@gmail.com>
Thu, 30 Apr 2015 09:25:19 +0000 (17:25 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 5 May 2015 07:27:01 +0000 (09:27 +0200)
commitde2ad486cb6cfdf3ef79a96a18d78bb1b135c0e0
tree79cd7e2cac4c67cefa9cc905b7b5c6ece3607ea4
parent586f2eb416f4271444e807b96346df3d30e8dfb5
xfrm: move the checking for old xfrm_policy hold_queue to beginning

if hold_queue of old xfrm_policy is NULL, return directly, then not need to
run other codes, especially take the spin lock

Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c