Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261761AbUKHHNv (ORCPT ); Mon, 8 Nov 2004 02:13:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261765AbUKHHNv (ORCPT ); Mon, 8 Nov 2004 02:13:51 -0500 Received: from [210.17.210.210] ([210.17.210.210]:23194 "EHLO mail.avantwave.com") by vger.kernel.org with ESMTP id S261762AbUKHHNk (ORCPT ); Mon, 8 Nov 2004 02:13:40 -0500 Message-ID: <418F1DEB.7000905@avantwave.com> Date: Mon, 08 Nov 2004 15:19:07 +0800 From: mike User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Linux kernel mailing Subject: About Tasklet scheduling 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: 1062 Lines: 25 Dear all I am new to kernel driver development. Thanks for any help. I am modifing a USB Ramdisk to a USB mass storage(MTD) driver in a dragonball ARM9 platform. I stop when using tasklet. The USB driver setup with endpoint 1 and 2 to be Interrupt IN and OUT point. So when ever there is a interrupt , I schedule the tasklet to read or write with semphone variable protection. The problem i am facing is that the read/write process is TOO SLOW for the host to response. I have tried to not use tasklet and call the read/write function directly, it works with small file but "schedule in interrupt" oops prompt out when transfer a large file . I have also try to use spin_lock_irqsave.. but it will stop the interrupt... I am in a hurry on this. Please give me a hand. Thanks Mike,Lee - 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/