1. 14 Mar, 2003 5 commits
    • Alex Tomas's avatar
      [PATCH] Re: hot scsi disk resize · d685cc6d
      Alex Tomas authored
      Hi!
      
      Here is new version of the patch. All procfs-related stuff has been removed.
      One may rescan device size writing something to /sysfs/.../<scsi device>/rescan:
      
      root@zefir:~# echo 1 >/sysfs/bus/scsi/devices/0\:0\:1\:0/rescan
      root@zefir:~# dmesg
      scsi0:A:1:0: Tagged Queuing enabled.  Depth 64
      scsi: host 0 channel 0 id 1 lun16384 has a LUN larger than allowed by the host adapter
      SCSI device sda: 2097152 512-byte hdwr sectors (1074 MB)
      SCSI device sda: drive cache: write through
       sda: unknown partition table
      Attached scsi disk sda at scsi0, channel 0, id 1, lun 0
      SCSI device sda: 125829120 512-byte hdwr sectors (64425 MB)
      root@zefir:~#
      d685cc6d
    • Willem Riede's avatar
      fix jiffies compare warning in osst · 7fe8f35f
      Willem Riede authored
      On 2003.03.11 14:13 Christoph Hellwig wrote:
      > 
      > --- 1.39/drivers/scsi/osst.c	Sun Feb  2 17:50:23 2003
      > +++ edited/drivers/scsi/osst.c	Mon Mar 10 14:35:46 2003
      > @@ -777,7 +777,7 @@
      >  #define OSST_POLL_PER_SEC 10
      >  static int osst_wait_frame(OS_Scsi_Tape * STp, Scsi_Request ** aSRpnt, int curr, int minlast, int to)
      >  {
      > -	long	startwait     = jiffies;
      > +	unsigned long startwait = jiffies;
      >  	char  * name          = tape_name(STp);
      >  #if DEBUG
      >  	char	notyetprinted = 1;
      > @@ -1288,7 +1288,7 @@
      >  	int             logical_blk_num  = ntohl(STp->buffer->aux->logical_blk_num) 
      >  						- (nframes + pending - 1) * blks_per_frame;
      >  	char          * name             = tape_name(STp);
      > -	long		startwait        = jiffies;
      > +	unsigned long	startwait        = jiffies;
      >  #if DEBUG
      >  	int		dbg              = debugging;
      >  #endif
      > @@ -1477,7 +1477,7 @@
      >  	int		expected  = 0;
      >  	int		attempts  = 1000 / skip;
      >  	int		flag      = 1;
      > -	long		startwait = jiffies;
      > +	unsigned long	startwait = jiffies;
      >  #if DEBUG
      >  	int		dbg       = debugging;
      >  #endif
      > -
      
      There are five functions that use jiffies. You fixed three of them.
      If this change is done (and that's fine with me) it should be done
      with this patch:
      7fe8f35f
    • Luben Tuikov's avatar
      scsi_softirq queue is now list_head, eliminate bh_next · f1b28fd9
      Luben Tuikov authored
      The following patch gets rid of softscsi_data struct and
      array for the more manageable
      static struct list_head done_q[NR_CPUS] __cacheline_aligned;
      
      Thus, scsi_cmnd::bh_next is eliminated, since it was used only
      in the scsi softirq processing code.
      
      The comments are updated.
      
      80 chars per line for the affected functions: scsi_done()
      and scsi_softirq().
      
      Eliminated is the double loop in scsi_softirq() -- this is
      better handled in do_softirq() and gives the system a ``breather''.
      (There are pros and cons for either side and if you guys
      think that it was better with the double loop, I'll change it and
      resubmit the patch.)
      f1b28fd9
    • Christoph Hellwig's avatar
      [PATCH] fix possible NULL pointer dereference in scsi_scan.c · 5f99bd9a
      Christoph Hellwig authored
      If the sdev allocation fails and q is non-null we could dereference
      sdev->request_queue.  While at it reformat the function to use
      goto-based cleanup - that's much easier to parse.
      5f99bd9a
    • Andrew Morton's avatar
      [PATCH] remove scsi_eh_retry_cmd · 306fda03
      Andrew Morton authored
      Compile warnings are useful...
      306fda03
  2. 13 Mar, 2003 1 commit
  3. 12 Mar, 2003 1 commit
  4. 11 Mar, 2003 33 commits