1. 11 10月, 2008 17 次提交
    • B
      ide-disk: use ata_id_hpa_enabled() · f41891c1
      Bartlomiej Zolnierkiewicz 提交于
      idedisk_supports_hpa() -> ata_id_hpa_enabled().
      
      The latter one also checks validity of words 82 & 85.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      f41891c1
    • B
      ide-disk: use ata_id_wcache_enabled() · 8a089c66
      Bartlomiej Zolnierkiewicz 提交于
      Replace open-coded check by ata_id_wcache_enabled()
      (which also checks validity of word 85).
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      8a089c66
    • B
      ide: use ata_id_current_chs_valid() · dd8f46f6
      Bartlomiej Zolnierkiewicz 提交于
      Replace open-coded checks by ata_id_current_chs_valid().
      
      There should be no functional changes caused by this patch.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      dd8f46f6
    • B
      ide: remove drive->driveid · 48fb2688
      Bartlomiej Zolnierkiewicz 提交于
      * Factor out HDIO_[OBSOLETE,GET]_IDENTITY ioctls handling
        to ide_get_identity_ioctl().
      
      * Use temporary buffer in ide_get_identity_ioctl() instead
        of accessing drive->id directly.
      
      * Add ide_id_to_hd_driveid() inline to convert raw id into
        struct hd_driveid format (needed on big-endian).
      
      * Use ide_id_to_hd_driveid() in ide_get_identity_ioctl(),
        cleanup ide_fix_driveid() and switch ide to use use raw id.
      
      * Remove no longer needed drive->driveid.
      
        This leaves us with 3 users of struct hd_driveid in tree:
        - arch/um/drivers/ubd_kern.c
        - drivers/block/xsysace.c
        - drivers/usb/storage/isd200.c
      
      While at it:
      
      * Use ata_id_u{32,64}() and ata_id_has_{dma,lba,iordy}() macros.
      
      There should be no functional changes caused by this patch.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      48fb2688
    • B
      ide: make drive->id an union (take 2) · 4dde4492
      Bartlomiej Zolnierkiewicz 提交于
      Make drive->id an unnamed union so id can be accessed either by using
      'u16 *id' or 'struct hd_driveid *driveid'.  Then convert all existing
      drive->id users accordingly (using 'u16 *id' when possible).
      
      This is an intermediate step to make ide 'struct hd_driveid'-free.
      
      While at it:
      
      - Add missing KERN_CONTs in it821x.c.
      
      - Use ATA_ID_WORDS and ATA_ID_*_LEN defines.
      
      - Remove unnecessary checks for drive->id.
      
      - s/drive_table/table/ in ide_in_drive_list().
      
      - Cleanup ide_config_drive_speed() a bit.
      
      - s/drive1/dev1/ & s/drive0/dev0/ in ide_undecoded_slave().
      
      v2:
      Fix typo in drivers/ide/ppc/pmac.c. (From Stephen Rothwell)
      
      There should be no functional changes caused by this patch.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      4dde4492
    • B
      ide: cleanup ide_fix_driveid() · 5b90e990
      Bartlomiej Zolnierkiewicz 提交于
      Do all __le16_to_cpu() swapping in one loop.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      5b90e990
    • B
      ide: cleanup ide_disk_init_mult_count() · df1f8378
      Bartlomiej Zolnierkiewicz 提交于
      * Remove superfluous checks for drive->mult_req.
      
      * No need to zero drive's fields.
      
      * Move the common code out of #ifdef scope.
      
      There should be no functional changes caused by this patch.
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      df1f8378
    • B
      ide: remove superfluous check from ide_disk_special() · f8881000
      Bartlomiej Zolnierkiewicz 提交于
      This condition is checked by both ide_disk_init_mult_count()
      and set_multcount() so no need to do it again in ide_disk_special().
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      f8881000
    • M
      ide-tape: Buildfix when IDETAPE_DEBUG_LOG is set to 1. · 730616b2
      Mark de Wever 提交于
      The format specifier for rq->sector didn't specify the proper size and
      signedness. Borislav Petkov discovered that the signedness for
      rq->nr_sectors and rq->current_nr_sectors also were incorrect.
      Signed-off-by: NMark de Wever <koraq@xs4all.nl>
      Acked-by: NBorislav Petkov <petkovbb@gmail.com>
      [bart: remove trailing whitespace]
      Signed-off-by: NBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      730616b2
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · f6bccf69
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
        crypto: skcipher - Use RNG interface instead of get_random_bytes
        crypto: rng - RNG interface and implementation
        crypto: api - Add fips_enable flag
        crypto: skcipher - Move IV generators into their own modules
        crypto: cryptomgr - Test ciphers using ECB
        crypto: api - Use test infrastructure
        crypto: cryptomgr - Add test infrastructure
        crypto: tcrypt - Add alg_test interface
        crypto: tcrypt - Abort and only log if there is an error
        crypto: crc32c - Use Intel CRC32 instruction
        crypto: tcrypt - Avoid using contiguous pages
        crypto: api - Display larval objects properly
        crypto: api - Export crypto_alg_lookup instead of __crypto_alg_lookup
        crypto: Kconfig - Replace leading spaces with tabs
      f6bccf69
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband · 3af73d39
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband: (29 commits)
        RDMA/nes: Fix slab corruption
        IB/mlx4: Set RLKEY bit for kernel QPs
        RDMA/nes: Correct error_module bit mask
        RDMA/nes: Fix routed RDMA connections
        RDMA/nes: Enhanced PFT management scheme
        RDMA/nes: Handle AE bounds violation
        RDMA/nes: Limit critical error interrupts
        RDMA/nes: Stop spurious MAC interrupts
        RDMA/nes: Correct tso_wqe_length
        RDMA/nes: Fill in firmware version for ethtool
        RDMA/nes: Use ethtool timer value
        RDMA/nes: Correct MAX TSO frags value
        RDMA/nes: Enable MC/UC after changing MTU
        RDMA/nes: Free NIC TX buffers when destroying NIC QP
        RDMA/nes: Fix MDC setting
        RDMA/nes: Add wqm_quanta module option
        RDMA/nes: Module parameter permissions
        RDMA/cxgb3: Set active_mtu in ib_port_attr
        RDMA/nes: Add support for 4-port 1G HP blade card
        RDMA/nes: Make mini_cm_connect() static
        ...
      3af73d39
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/dlm · 13dd7f87
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/dlm:
        dlm: choose better identifiers
        dlm: remove bkl
        dlm: fix address compare
        dlm: fix locking of lockspace list in dlm_scand
        dlm: detect available userspace daemon
        dlm: allow multiple lockspace creates
      13dd7f87
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-2.6-dm · b0af205a
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-2.6-dm:
        dm: detect lost queue
        dm: publish dm_vcalloc
        dm: publish dm_table_unplug_all
        dm: publish dm_get_mapinfo
        dm: export struct dm_dev
        dm crypt: avoid unnecessary wait when splitting bio
        dm crypt: tidy ctx pending
        dm crypt: fix async inc_pending
        dm crypt: move dec_pending on error into write_io_submit
        dm crypt: remove inc_pending from write_io_submit
        dm crypt: tidy write loop pending
        dm crypt: tidy crypt alloc
        dm crypt: tidy inc pending
        dm exception store: use chunk_t for_areas
        dm exception store: introduce area_location function
        dm raid1: kcopyd should stop on error if errors handled
        dm mpath: remove is_active from struct dm_path
        dm mpath: use more error codes
      
      Fixed up trivial conflict in drivers/md/dm-mpath.c manually.
      b0af205a
    • C
      Fix barrier fail detection in XFS · 73f6aa4d
      Christoph Hellwig 提交于
      Currently we disable barriers as soon as we get a buffer in xlog_iodone
      that has the XBF_ORDERED flag cleared.  But this can be the case not only
      for buffers where the barrier failed, but also the first buffer of a
      split log write in case of a log wraparound.  Due to the disabled
      barriers we can easily get directory corruption on unclean shutdowns.
      So instead of using this check add a new buffer flag for failed barrier
      writes.
      
      This is a regression vs 2.6.26 caused by patch to use the right macro
      to check for the ORDERED flag, as we previously got true returned for
      every buffer.
      
      Thanks to Toei Rei for reporting the bug.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Reviewed-by: NEric Sandeen <sandeen@sandeen.net>
      Reviewed-by: NDavid Chinner <david@fromorbit.com>
      Signed-off-by: NTim Shimmin <tes@sgi.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      73f6aa4d
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6-nmw · 445e1ced
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6-nmw:
        GFS2: Support for I/O barriers
        GFS2: Add UUID to GFS2 sb
        GFS2: high time to take some time over atime
        GFS2: The war on bloat
        GFS2: GFS2 will panic if you misspell any mount options
        GFS2: Direct IO write at end of file error
        GFS2: Use an IS_ERR test rather than a NULL test
        GFS2: Fix race relating to glock min-hold time
        GFS2: Fix & clean up GFS2 rename
        GFS2: rm on multiple nodes causes panic
        GFS2: Fix metafs mounts
        GFS2: Fix debugfs glock file iterator
      445e1ced
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 · ef5bef35
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (37 commits)
        [SCSI] zfcp: fix double dbf id usage
        [SCSI] zfcp: wait on SCSI work to be finished before proceeding with init dev
        [SCSI] zfcp: fix erp list usage without using locks
        [SCSI] zfcp: prevent fc_remote_port_delete calls for unregistered rport
        [SCSI] zfcp: fix deadlock caused by shared work queue tasks
        [SCSI] zfcp: put threshold data in hba trace
        [SCSI] zfcp: Simplify zfcp data structures
        [SCSI] zfcp: Simplify get_adapter_by_busid
        [SCSI] zfcp: remove all typedefs and replace them with standards
        [SCSI] zfcp: attach and release SAN nameserver port on demand
        [SCSI] zfcp: remove unused references, declarations and flags
        [SCSI] zfcp: Update message with input from review
        [SCSI] zfcp: add queue_full sysfs attribute
        [SCSI] scsi_dh: suppress comparison warning
        [SCSI] scsi_dh: add Dell product information into rdac device handler
        [SCSI] qla2xxx: remove the unused SCSI_QLOGIC_FC_FIRMWARE option
        [SCSI] qla2xxx: fix printk format warnings
        [SCSI] qla2xxx: Update version number to 8.02.01-k8.
        [SCSI] qla2xxx: Ignore payload reserved-bits during RSCN processing.
        [SCSI] qla2xxx: Additional residual-count corrections during UNDERRUN handling.
        ...
      ef5bef35
    • L
      Merge branch 'for-2.6.28' of git://git.kernel.dk/linux-2.6-block · e26feff6
      Linus Torvalds 提交于
      * 'for-2.6.28' of git://git.kernel.dk/linux-2.6-block: (132 commits)
        doc/cdrom: Trvial documentation error, file not present
        block_dev: fix kernel-doc in new functions
        block: add some comments around the bio read-write flags
        block: mark bio_split_pool static
        block: Find bio sector offset given idx and offset
        block: gendisk integrity wrapper
        block: Switch blk_integrity_compare from bdev to gendisk
        block: Fix double put in blk_integrity_unregister
        block: Introduce integrity data ownership flag
        block: revert part of d7533ad0e132f92e75c1b2eb7c26387b25a583c1
        bio.h: Remove unused conditional code
        block: remove end_{queued|dequeued}_request()
        block: change elevator to use __blk_end_request()
        gdrom: change to use __blk_end_request()
        memstick: change to use __blk_end_request()
        virtio_blk: change to use __blk_end_request()
        blktrace: use BLKTRACE_BDEV_SIZE as the name size for setup structure
        block: add lld busy state exporting interface
        block: Fix blk_start_queueing() to not kick a stopped queue
        include blktrace_api.h in headers_install
        ...
      e26feff6
  2. 10 10月, 2008 23 次提交