]> git.karo-electronics.de Git - mv-sheeva.git/commit
[PATCH] sg.c: update
author <dougg@torque.net> <>
Sat, 2 Apr 2005 19:51:23 +0000 (13:51 -0600)
committerJames Bottomley <jejb@titanic>
Sun, 17 Apr 2005 01:08:52 +0000 (20:08 -0500)
commitcb59e840838193957a84ad22f7e1465a06a7c10c
treed47f9779a52eb782962dc3406ef0de6100a29dfa
parenta757e64cfa400391041ed7953f0290c34a820c93
[PATCH] sg.c: update

The attachment combines the most recent patch from
Yum Rayan <yum.rayan@gmail.com> (to reduce sg stack
usage), Adrian Bunk <bunk@stusta.de> (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 <dougg@torque.net>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/sg.c