05 Oct, 2006

15 commits


04 Oct, 2006

10 commits


03 Oct, 2006

1 commit

  • following an email from John Adams to me with a patch
    to enable tmscsim to use blocks up to 1MB and a discussion on linux-scsi,
    below is a patch to enable clustering for tmscsim. I made it switchable
    with a module parameter, with default "enable" - in case somebody gets
    problems with it. Unfortunately, I was not able to check if this alone
    lets you use any bigger blocks with a tape, as my tape seems to only
    support 1 block size - only "mt setblk 1" is successful, any other value
    fails. OTOH, testing on a P-133 showed that enabling clustering alone
    improves throughput by 10% and reduces CPU load by another 10%, so, seems
    a worthy thing to do. As for setting max_sectors, that might become a
    separate patch...

    Signed-off-by: James Bottomley

    Guennadi Liakhovetski
     

02 Oct, 2006

9 commits


01 Oct, 2006

1 commit


28 Sep, 2006

1 commit


27 Sep, 2006

3 commits

  • gcc 4.1 with some extra warnings show the following:

    drivers/scsi/ipr.c:6361: warning: comparison of unsigned expression < 0 is always false
    drivers/scsi/ipr.c:6385: warning: comparison of unsigned expression < 0 is always false
    drivers/scsi/ipr.c:6415: warning: comparison of unsigned expression < 0 is always false

    The problem is that rc is of the type u32, which can never be smaller than
    zero, therefore all three error handling checks get useless. This patch
    changes it to a normal int, because all usages / all functions it get used
    with expect an int.

    Signed-off-by: Eric Sesterhenn
    Acked-by: Brian King
    Signed-off-by: Andrew Morton
    Signed-off-by: James Bottomley

    Eric Sesterhenn
     
  • Converts pci_module_init() to pci_register_driver() in the scsi subsys on
    23 drivers which only return the value of pci_module_init().

    Signed-off-by: Henrik Kretzschmar
    Signed-off-by: Andrew Morton
    Signed-off-by: James Bottomley

    Henrik Kretzschmar
     
  • another signdness warning from gcc 4.1

    drivers/scsi/osst.c:5154: warning: comparison of unsigned expression < 0 is always false

    The problem is that blk is defined as unsigned, but all usages of it are
    normal int cases. osst_get_frame_position() and osst_get_sector() return ints
    and can return negative values. If blk stays an unsigned int, the error check
    is useless.

    Signed-off-by: Eric Sesterhenn
    Signed-off-by: Andrew Morton
    Signed-off-by: James Bottomley

    Eric Sesterhenn