[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090120.152345.78877396.davem@davemloft.net>
Date: Tue, 20 Jan 2009 15:23:45 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: arnd@...db.de
Cc: ceggers@....de, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org
Subject: Re: [PATCH] usb/mcs7830: Don't use buffers from stack for USB
transfers
From: Arnd Bergmann <arnd@...db.de>
Date: Wed, 21 Jan 2009 00:17:18 +0100
> On Tuesday 20 January 2009, David Miller wrote:
> > + buffer = kmalloc(size, GFP_NOIO);
>
> GFP_NOIO seems out of place in a network driver: there is nothing
> wrong with waiting for I/O here, so plain GFP_KERNEL should be fine.
There seems to be a large precendence for this in other USB drivers,
both for networking and storage. Probably a mutex or other locking
hierarchy issue.
Really, I would just apply this patch as-is. It works, it's pretty
clean, and every retort has been a misunderstanding or extreme
nit-picking :-)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists