1. 10 6月, 2009 3 次提交
  2. 09 6月, 2009 3 次提交
    • B
      ide: skip probe if there are no devices on the port (v2) · a20b2a44
      Bartlomiej Zolnierkiewicz 提交于
      In ide_probe_port() skip probe if ide_port_wait_ready() returns -ENODEV
      and print error message instead of debug one if it returns -EBUSY.
      
      v2:
      Fix the default 'rc' value.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      a20b2a44
    • S
      sl82c105: add printk() logging facility · 75c2d7d7
      Sergei Shtylyov 提交于
      Add missing printk() logging facility in sl82c105_dma_lost_irq().
      Signed-off-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      75c2d7d7
    • B
      ide-tape: fix proc warning · 9d01e4cd
      Borislav Petkov 提交于
      ide_tape_chrdev_get() was missing an ide_device_get() refcount increment
      which lead to the following warning:
      
      [  278.147906] ------------[ cut here ]------------
      [  278.152685] WARNING: at fs/proc/generic.c:847 remove_proc_entry+0x199/0x1b8()
      [  278.160070] Hardware name: P4I45PE    1.00
      [  278.160076] remove_proc_entry: removing non-empty directory 'ide0/hdb', leaking at least 'name'
      [  278.160080] Modules linked in: rtc intel_agp pcspkr thermal processor thermal_sys parport_pc parport agpgart button
      [  278.160100] Pid: 2312, comm: mt Not tainted 2.6.30-rc2 #3
      [  278.160105] Call Trace:
      [  278.160117]  [<c012141d>] warn_slowpath+0x71/0xa0
      [  278.160126]  [<c035f219>] ? _spin_unlock_irqrestore+0x29/0x2c
      [  278.160132]  [<c011c686>] ? try_to_wake_up+0x1b6/0x1c0
      [  278.160141]  [<c011c69b>] ? default_wake_function+0xb/0xd
      [  278.160149]  [<c0177ead>] ? pollwake+0x4a/0x55
      [  278.160156]  [<c035f240>] ? _spin_unlock+0x24/0x26
      [  278.160163]  [<c0165d38>] ? add_partial+0x44/0x49
      [  278.160169]  [<c01669e8>] ? __slab_free+0xba/0x29c
      [  278.160177]  [<c01a13d8>] ? sysfs_delete_inode+0x0/0x3c
      [  278.160184]  [<c019ca92>] remove_proc_entry+0x199/0x1b8
      [  278.160191]  [<c01a297e>] ? remove_dir+0x27/0x2e
      [  278.160199]  [<c025f3ab>] ide_proc_unregister_device+0x40/0x4c
      [  278.160207]  [<c02599cd>] drive_release_dev+0x14/0x47
      [  278.160214]  [<c0250538>] device_release+0x35/0x5a
      [  278.160221]  [<c01f8bed>] kobject_release+0x40/0x50
      [  278.160226]  [<c01f8bad>] ? kobject_release+0x0/0x50
      [  278.160232]  [<c01f96ac>] kref_put+0x3c/0x4a
      [  278.160238]  [<c01f8b29>] kobject_put+0x37/0x3c
      [  278.160243]  [<c025020c>] put_device+0xf/0x11
      [  278.160249]  [<c025789f>] ide_device_put+0x2d/0x30
      [  278.160255]  [<c02658da>] ide_tape_put+0x24/0x32
      [  278.160261]  [<c0266e0c>] idetape_chrdev_release+0x17f/0x18e
      [  278.160269]  [<c016c4f5>] __fput+0xca/0x175
      [  278.160275]  [<c016c5b9>] fput+0x19/0x1b
      [  278.160280]  [<c0169d19>] filp_close+0x51/0x5b
      [  278.160286]  [<c0169d96>] sys_close+0x73/0xad
      [  278.160293]  [<c0102a61>] syscall_call+0x7/0xb
      [  278.160298] ---[ end trace f16d907ea1f89336 ]---
      
      Instead of trivially fixing it by adding the missing call,
      ide_tape_chrdev_get() and ide_tape_get() were merged into one function
      since both were almost identical. The only difference was that
      ide_tape_chrdev_get() was accessing the ide-tape reference through the
      idetape_devs[] array of minors instead of through the gendisk.
      
      Accomodate that by adding two additional parameters to ide_tape_get() to
      annotate the call site and invoke the proper behavior.
      
      As a result, remove ide_tape_chrdev_get().
      Signed-off-by: NBorislav Petkov <petkovbb@gmail.com>
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      9d01e4cd
  3. 07 6月, 2009 16 次提交
  4. 31 5月, 2009 1 次提交
  5. 23 5月, 2009 2 次提交
  6. 22 5月, 2009 6 次提交
  7. 19 5月, 2009 1 次提交
    • T
      block: set rq->resid_len to blk_rq_bytes() on issue · 5f49f631
      Tejun Heo 提交于
      In commit c3a4d78c, while introducing
      rq->resid_len, the default value of residue count was changed from
      full count to zero.  The conversion was done under the assumption that
      when a request fails residue count wasn't defined.  However, Boaz and
      James pointed out that this wasn't true and the residue count should
      be preserved for failed requests too.
      
      This patchset restores the original behavior by setting rq->resid_len
      to blk_rq_bytes(rq) on request start and restoring explicit clearing
      in affected drivers.  While at it, take advantage of the fact that
      rq->resid_len is set to full count where applicable.
      
      * ide-cd: rq->resid_len cleared on pc success
      
      * mptsas: req->resid_len cleared on success
      
      * sas_expander: rsp/req->resid_len cleared on success
      
      * mpt2sas_transport: req->resid_len cleared on success
      
      * ide-cd, ide-tape, mptsas, sas_host_smp, mpt2sas_transport, ub: take
        advantage of initial full count to simplify code
      
      Boaz Harrosh spotted bug in resid_len initialization.  Fixed as
      suggested.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Acked-by: NBorislav Petkov <petkovbb@googlemail.com>
      Cc: Boaz Harrosh <bharrosh@panasas.com>
      Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
      Cc: Pete Zaitcev <zaitcev@redhat.com>
      Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
      Cc: Eric Moore <Eric.Moore@lsi.com>
      Cc: Darrick J. Wong <djwong@us.ibm.com>
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      5f49f631
  8. 18 5月, 2009 6 次提交
  9. 17 5月, 2009 2 次提交