Re: [Patch]net/xfrm/xfrm_policy.c: replace timer with delayed_work

From: WANG Cong
Date: Wed Apr 30 2008 - 12:03:27 EST


On Mon, 28 Apr 2008, Herbert Xu wrote:

On Mon, Apr 28, 2008 at 10:53:12PM +0800, WANG Cong wrote:

Do you mean ->lock of struct xfrm_policy?
OK. I will recook these two patches soon.

Yep.

Hi, Herbert.

I referenced the book Linux Device Drivers, it is said that
the work function in workqueue can sleep, that is to say, it only
works in process context, so we don't need the disable the lock
in softirq, which is interrupt context, right?

Please teach me if I missed some obvious things. ;-)

Thanks.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/