1. 14 12月, 2005 1 次提交
  2. 29 10月, 2005 3 次提交
  3. 15 9月, 2005 1 次提交
  4. 29 8月, 2005 3 次提交
    • J
      [SCSI] convert sr to scsi_execute_req · 820732b5
      James Bottomley 提交于
      This follows almost the identical model to sd, except that there's one
      ioctl which returns raw sense data, so it had to use scsi_execute()
      instead.
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      820732b5
    • J
      [SCSI] convert the remaining mid-layer pieces to scsi_execute_req · 1cf72699
      James Bottomley 提交于
      After this, we just have some drivers, all the ULDs and the SPI
      transport class using scsi_wait_req().
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      1cf72699
    • P
      [SCSI] sr.c: Fix getting wrong size · 51490c89
      Pete Zaitcev 提交于
      Here's the problem. Try to do this on 2.6.12:
      - Kill udev and HAL
      - Insert a CD-ROM into a SCSI or USB CD-ROM drive
      - Run dd if=/dev/scd0
      - cat /sys/block/sr0/size
      - Eject the CD, insert a different one
      - Run dd if=/dev/scd0
      This is likely to do "access beyond the end of device", if you let it
      - cat /sys/block/sr0/size
      This shows the size of a previous CD, even though dd was supposed
      to revalidate the device.
      - Run dd if=/dev/scd0
      The second run of dd works correctly!
      
      The bug was introduced in 2.5.31, when Al fixes the recursive opens
      in partitioning. Before, the code worked like this:
      - Block layer called cdrom_open directly
      - cdrom_open called sr_open
      - sr_open called check_disk_change
      - check_disk_change called sr_media_change
      - sr_media_change did cd->needs_disk_change=1
      - before returning sr_open tested cd->needs_disk_change
        and called get_sector_size.
      
      In 2.6.12, the check_disk_change is called from cdrom_open only. Thus:
      - Block layer calls sr_bd_open
      - sr_bd_open calls cdrom_open
      - cdrom_open calls sr_open
      - sr_open tests cd->needs_disk_change, which wasn't set yet; returns
      - cdrom_open calls check_disk_change
      - check_disk_change calls sr_media_change
      - sr_media_change does cd->needs_disk_change=1, but nobody cares
      
      Acked by: Alexander Viro <aviro@redhat.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      51490c89
  5. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4