From: Date: Sat, 2 Apr 2005 19:51:23 +0000 (-0600) Subject: [PATCH] sg.c: update X-Git-Tag: v2.6.12-rc3~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb59e840838193957a84ad22f7e1465a06a7c10c;p=pandora-kernel.git [PATCH] sg.c: update The attachment combines the most recent patch from Yum Rayan (to reduce sg stack usage), Adrian Bunk (to fix check after use) and me (fix elapsed time calculation (duration) on ia64 machines). I have modified the patch from Yum Rayan so kmalloc() in sg_read() is only called for the (rare) code paths that need them. Changelog: - reduce stack usage in sg_ioctl() and sg_read() - fix check after use in sg_mmap() - hold duration internally in milliseconds and check current time later than held time Signed-off-by: Douglas Gilbert Signed-off-by: James Bottomley --- Reading git-diff-tree failed