1. 20 Nov, 2002 2 commits
    • Patrick Mansfield's avatar
      [PATCH] remove unused includes and misleading comments from scsi_lib.c · d67cf443
      Patrick Mansfield authored
      On Sun, Nov 17, 2002 at 11:54:49PM +0100, Christoph Hellwig wrote:
      
      > --- 1.46/drivers/scsi/scsi_lib.c	Thu Nov 14 18:09:17 2002
      > +++ edited/drivers/scsi/scsi_lib.c	Sun Nov 17 21:37:05 2002
      > @@ -7,50 +7,18 @@
      >   *                        of people at Linux Expo.
      >   */
      >
      > -/*
      > - * The fundamental purpose of this file is to contain a library of utility
      > - * routines that can be used by low-level drivers.   Ultimately the idea
      > - * is that there should be a sufficiently rich number of functions that it
      > - * would be possible for a driver author to fashion a queueing function for
      > - * a low-level driver if they wished.   Note however that this file also
      > - * contains the "default" versions of these functions, as we don't want to
      > - * go through and retrofit queueing functions into all 30 some-odd drivers.
      > - */
      > -
      > -#include <linux/module.h>
      > -
      > -#include <linux/sched.h>
      > -#include <linux/timer.h>
      >  #include <linux/string.h>
      >  #include <linux/slab.h>
      >  #include <linux/bio.h>
      > -#include <linux/ioport.h>
      >  #include <linux/kernel.h>
      > -#include <linux/stat.h>
      >  #include <linux/blk.h>
      > -#include <linux/interrupt.h>
      > -#include <linux/delay.h>
      > -#include <linux/smp_lock.h>
      >  #include <linux/completion.h>
      >
      > -
      > -#define __KERNEL_SYSCALLS__
      > -
      > -#include <linux/unistd.h>
      
      I had to add back the smp_lock.h include to compile with CONFIG_PREEMPT,
      as kernel_locked was not defined and is used by in_atomic().
      
      Patch against the latest scsi-misc-2.5:
      d67cf443
    • James Bottomley's avatar
      fix queue plug performance problem found by akpm · 996bfdf1
      James Bottomley authored
      Fix is to only plug on prep deferral if the device queue is empty
      (otherwise we can rely on returning I/O to restart the queue)
      996bfdf1
  2. 19 Nov, 2002 14 commits
  3. 18 Nov, 2002 24 commits