Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 25 Nov 2002 16:58:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 25 Nov 2002 16:58:37 -0500 Received: from c3po.aoltw.net ([64.236.137.25]:2965 "EHLO netscape.com") by vger.kernel.org with ESMTP id ; Mon, 25 Nov 2002 16:58:37 -0500 Message-ID: <3DE29EB9.9050301@netscape.com> Date: Mon, 25 Nov 2002 14:05:45 -0800 From: jgmyers@netscape.com (John Myers) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2) Gecko/20021121 X-Accept-Language: en-us, en MIME-Version: 1.0 To: linux-kernel CC: Davide Libenzi Subject: Re: [rfc] new poll callback'd wake up hell ... Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 460 Lines: 12 Davide Libenzi writes: > 1) Move the wake_up() call done inside the poll callback outside the lock You can't. You need to hold the lock over the callback or your callback could end up accessing a freed epitem. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/