~ubuntu-branches/ubuntu/quantal/linux-lowlatency/quantal

« back to all changes in this revision

Viewing changes to drivers/target/target_core_pr.c

  • Committer: Package Import Robot
  • Author(s): Luke Yelavich, Andy Whitcroft, Chase Douglas, Eugeni Dodonov, Ingo Molnar, Johannes Berg, John Johansen, Kees Cook, Leann Ogasawara, Robert Hooker, Seth Heasley, Tim Gardner, Luke Yelavich, Upstream Kernel Changes
  • Date: 2012-03-09 10:21:12 UTC
  • Revision ID: package-import@ubuntu.com-20120309102112-s1abu8w051stx2rl
Tags: 3.2.0-18.26
[ Andy Whitcroft ]

* [Config] clean up the human consumable package descriptions
* [Config] fix generic flavour description
* [Config] clean up linux-tools package descriptions
  - LP: #593107
* deviations -- note the source of the Hyper-V updates
* SAUCE: ata_piix: defer to the Hyper-V drivers by default
  - LP: #929545
* ubuntu: AUFS -- adapt to the new changelog handling
* ubuntu: AUFS -- sort out the relative header paths
* ubuntu: AUFS -- update to d266b0c5d0693d6383976ee54b9e2c0fa9a3f5b0

[ Chase Douglas ]

* SAUCE: (drop after 3.3) HID: hid-magicmouse: Add pointer and buttonpad
  properties for Magic Trackpad
* SAUCE: Input: synaptics - add second variant of two-button clickpad
* SAUCE: Input: synapticss - Set buttonpad property for all clickpads

[ Eugeni Dodonov ]

* SAUCE: drm/i915: do not enable RC6p on Sandy Bridge
* SAUCE: drm/i915: fix operator precedence when enabling RC6p

[ Ingo Molnar ]

* ubuntu: nx-emu - i386: NX emulation

[ Johannes Berg ]

* SAUCE: iwlwifi: fix key removal
  - LP: #911059

[ John Johansen ]

* Revert "SAUCE: AppArmor: Fix unpack of network tables."
* Revert "SAUCE: AppArmor: Allow dfa backward compatibility with broken
  userspace"
* SAUCE: AppArmor: Add mising end of structure test to caps unpacking
* SAUCE: AppArmor: Fix dropping of allowed operations that are force
  audited
* SAUCE: AppArmor: Fix underflow in xindex calculation
* SAUCE: AppArmor: fix mapping of META_READ to audit and quiet flags
* SAUCE: AppArmor: Fix the error case for chroot relative path name
  lookup
  - LP: #925028
* SAUCE: AppArmor: Retrieve the dentry_path for error reporting when path
  lookup fails
  - LP: #925028
* SAUCE: AppArmor: Minor cleanup of d_namespace_path to consolidate error
  handling
* SAUCE: AppArmor: Update dfa matching routines.
* SAUCE: AppArmor: Move path failure information into aa_get_name and
  rename
* SAUCE: AppArmor: Make chroot relative the default path lookup type
* SAUCE: AppArmor: Add ability to load extended policy
* SAUCE: AppArmor: basic networking rules
* SAUCE: AppArmor: Add profile introspection file to interface
* SAUCE: AppArmor: Add the ability to mediate mount
* SAUCE: AppArmor: Add mount information to apparmorfs

[ Kees Cook ]

* SAUCE: (drop after 3.3) security: create task_free security callback
* SAUCE: (drop after 3.3) security: Yama LSM
* SAUCE: (drop after 3.3) Yama: add PR_SET_PTRACER_ANY
* SAUCE: Yama: add link restrictions
* SAUCE: security: unconditionally chain to Yama LSM
* SAUCE: AppArmor: refactor securityfs to use structures
* SAUCE: AppArmor: add initial "features" directory to securityfs
* SAUCE: AppArmor: add "file" details to securityfs
* SAUCE: AppArmor: export known rlimit names/value mappings in securityfs
* ubuntu: Yama - LSM hooks
* ubuntu: Yama - add ptrace relationship tracking interface
* ubuntu: Yama - unconditionally chain to Yama LSM

[ Leann Ogasawara ]

* Revert "[Config] Enable CONFIG_NVRAM=m"
  - LP: #942193
* Drop ndiswrapper
* Ubuntu-3.2.0-17.26
* Ubuntu-3.2.0-17.27
* Rebase to v3.2.7
* [Config] Enable CONFIG_USB_SERIAL_QUATECH2=m on arm and powerpc
* [Config] Enable CONFIG_USB_SERIAL_QUATECH_USB2=m on arm and powerpc
* [Config] Add CONFIG_NVRAM to config enforcer
  - LP: #942193
* [Config] Enable CONFIG_SCSI_IBMVSCSI=m for powerpc
  - LP: #943090
* [Config] Enable CONFIG_SCSI_IPR=m for powerpc
  - LP: #943090
* provide ipmi udeb
  - LP: #942926
* Rebase to v3.2.9
* Add ibmveth to d-i/modules-powerpc/nic-modules
  - LP: #712188
* [Config] Enable CONFIG_SCSI_IBMVFC=m for powerpc
  - LP: #712188
* Add ibmvfc and ibmvscsic to d-i/modules-powerpc/nic-modules
  - LP: #712188
* Ubuntu-3.2.0-18.28

[ Robert Hooker ]

* SAUCE: drm/i915: Enable RC6 by default on sandybridge.

[ Seth Heasley ]

* SAUCE: ALSA: hda - Add Lynx Point HD Audio Controller DeviceIDs
  - LP: #900119
* SAUCE: ahci: AHCI-mode SATA patch for Intel Lynx Point DeviceIDs
  - LP: #900119
* SAUCE: ata_piix: IDE-mode SATA patch for Intel Lynx Point DeviceIDs
  - LP: #900119
* SAUCE: i2c-i801: Add device IDs for Intel Lynx Point
  - LP: #900119

[ Tim Gardner ]

* dropped hv_mouse
* [Config] CONFIG_X86_NUMACHIP=y
* [Config] updateconfigs after apparmor patches
* [Config] Added hv_netvsc and hv_storvsc to -virtual
  - LP: #942256
* [Config] Enable aufs
  - LP: #943119
* SAUCE: Made kernel irq-threaded by default

[ Luke Yelavich ]

* UBUNTU: Depend on crda (>=1.1.1-1ubuntu2) | wireless-crda as per precise
  mainline packaging

[ Upstream Kernel Changes ]

* Revert "Revert "ath9k_hw: fix interpretation of the rx KeyMiss flag""
* Revert "AppArmor: compatibility patch for v5 interface"
* Revert "AppArmor: compatibility patch for v5 network controll"
* Staging: hv: vmbus: Support building the vmbus driver as part of the
  kernel
* hv: Add Kconfig menu entry
* Drivers: hv: Fix a memory leak
* Drivers: hv: Make the vmbus driver unloadable
* Drivers: hv: Get rid of an unnecessary check in hv.c
* Staging: hv: mousevsc: Make boolean states boolean
* Staging: hv: mousevsc: Inline the code for mousevsc_on_device_add()
* Staging: hv: mousevsc: Inline the code for reportdesc_callback()
* Staging: hv: mousevsc: Cleanup mousevsc_on_channel_callback()
* Staging: hv: mousevsc: Add a new line to a debug string
* Staging: hv: mousevsc: Get rid of unnecessary include files
* Staging: hv: mousevsc: Address some style issues
* Staging: hv: mousevsc: Add a check to prevent memory corruption
* Staging: hv: mousevsc: Use the KBUILD_MODNAME macro
* Staging: hv: storvsc: Use mempools to allocate struct
  storvsc_cmd_request
* Staging: hv: storvsc: Cleanup error handling in the probe function
* Staging: hv: storvsc: Fixup the error when processing SET_WINDOW
  command
* Staging: hv: storvsc: Fix error handling storvsc_host_reset()
* Staging: hv: storvsc: Use the accessor function shost_priv()
* Staging: hv: storvsc: Use the unlocked version queuecommand
* Staging: hv: storvsc: use the macro KBUILD_MODNAME
* Staging: hv: storvsc: Get rid of an unnecessary forward declaration
* Staging: hv: storvsc: Upgrade the vmstor protocol version
* Staging: hv: storvsc: Support hot add of scsi disks
* Staging: hv: storvsc: Support hot-removing of scsi devices
* staging: hv: Use kmemdup rather than duplicating its implementation
* staging: hv: move hv_netvsc out of staging area
* Staging: hv: mousevsc: Properly add the hid device
* Staging: hv: storvsc: Disable clustering
* Staging: hv: storvsc: Cleanup storvsc_device_alloc()
* Staging: hv: storvsc: Fix a bug in storvsc_command_completion()
* Staging: hv: storvsc: Fix a bug in copy_from_bounce_buffer()
* Staging: hv: storvsc: Implement per device memory pools
* Staging: hv: remove hv_mouse driver as it's now in the hid directory
* Staging: hv: update TODO file
* Staging: hv: storvsc: Fix a bug in create_bounce_buffer()
* net/hyperv: Fix long lines in netvsc.c
* net/hyperv: Add support for promiscuous mode setting
* net/hyperv: Fix the stop/wake queue mechanism
* net/hyperv: Remove unnecessary kmap_atomic in netvsc driver
* net/hyperv: Add NETVSP protocol version negotiation
* net/hyperv: Add support for jumbo frame up to 64KB
* net/hyperv: fix possible memory leak in do_set_multicast()
* net/hyperv: rx_bytes should account the ether header size
* net/hyperv: fix the issue that large packets be dropped under bridge
* net/hyperv: Use netif_tx_disable() instead of netif_stop_queue() when
  necessary
* net/hyperv: Fix the page buffer when an RNDIS message goes beyond page
  boundary
* HID: Move the hid-hyperv driver out of staging
* HID: hv_mouse: Properly add the hid device
* HID: hyperv: Properly disconnect the input device
* Staging: hv: storvsc: Cleanup some comments
* Staging: hv: storvsc: Cleanup storvsc_probe()
* Staging: hv: storvsc: Cleanup storvsc_queuecommand()
* Staging: hv: storvsc: Introduce defines for srb status codes
* Staging: hv: storvsc: Cleanup storvsc_host_reset_handler()
* Staging: hv: storvsc: Move and cleanup storvsc_remove()
* Staging: hv: storvsc: Add a comment to explain life-cycle management
* Staging: hv: storvsc: Get rid of the on_io_completion in
  hv_storvsc_request
* Staging: hv: storvsc: Rename the context field in hv_storvsc_request
* Staging: hv: storvsc: Miscellaneous cleanup of storvsc driver
* Staging: hv: storvsc: Cleanup the code for generating protocol version
* Staging: hv: storvsc: Cleanup some protocol related constants
* Staging: hv: storvsc: Get rid of some unused defines
* Staging: hv: storvsc: Consolidate the request structure
* Staging: hv: storvsc: Consolidate all the wire protocol definitions
* Staging: hv: storvsc: Move the storage driver out of the staging area
* x86: Make flat_init_apic_ldr() available
* x86: Add x86_init platform override to fix up NUMA core numbering
* x86: Add NumaChip support
* x86/numachip: Drop unnecessary conflict with EDAC
* Input: bcm5974 - set BUTTONPAD property
* Ubuntu: Rebase to v3.2.8
* ACPI / PM: Do not save/restore NVS on Asus K54C/K54HR
  - LP: #898503
* Add low latency source

Show diffs side-by-side

added added

removed removed

Lines of Context:
1538
1538
        tidh_new->dest_local_nexus = 1;
1539
1539
        list_add_tail(&tidh_new->dest_list, &tid_dest_list);
1540
1540
 
1541
 
        buf = transport_kmap_first_data_page(cmd);
 
1541
        buf = transport_kmap_data_sg(cmd);
1542
1542
        /*
1543
1543
         * For a PERSISTENT RESERVE OUT specify initiator ports payload,
1544
1544
         * first extract TransportID Parameter Data Length, and make sure
1789
1789
 
1790
1790
        }
1791
1791
 
1792
 
        transport_kunmap_first_data_page(cmd);
 
1792
        transport_kunmap_data_sg(cmd);
1793
1793
 
1794
1794
        /*
1795
1795
         * Go ahead and create a registrations from tid_dest_list for the
1837
1837
 
1838
1838
        return 0;
1839
1839
out:
1840
 
        transport_kunmap_first_data_page(cmd);
 
1840
        transport_kunmap_data_sg(cmd);
1841
1841
        /*
1842
1842
         * For the failure case, release everything from tid_dest_list
1843
1843
         * including *dest_pr_reg and the configfs dependances..
3429
3429
         * will be moved to for the TransportID containing SCSI initiator WWN
3430
3430
         * information.
3431
3431
         */
3432
 
        buf = transport_kmap_first_data_page(cmd);
 
3432
        buf = transport_kmap_data_sg(cmd);
3433
3433
        rtpi = (buf[18] & 0xff) << 8;
3434
3434
        rtpi |= buf[19] & 0xff;
3435
3435
        tid_len = (buf[20] & 0xff) << 24;
3436
3436
        tid_len |= (buf[21] & 0xff) << 16;
3437
3437
        tid_len |= (buf[22] & 0xff) << 8;
3438
3438
        tid_len |= buf[23] & 0xff;
3439
 
        transport_kunmap_first_data_page(cmd);
 
3439
        transport_kunmap_data_sg(cmd);
3440
3440
        buf = NULL;
3441
3441
 
3442
3442
        if ((tid_len + 24) != cmd->data_length) {
3488
3488
                return -EINVAL;
3489
3489
        }
3490
3490
 
3491
 
        buf = transport_kmap_first_data_page(cmd);
 
3491
        buf = transport_kmap_data_sg(cmd);
3492
3492
        proto_ident = (buf[24] & 0x0f);
3493
3493
#if 0
3494
3494
        pr_debug("SPC-3 PR REGISTER_AND_MOVE: Extracted Protocol Identifier:"
3522
3522
                goto out;
3523
3523
        }
3524
3524
 
3525
 
        transport_kunmap_first_data_page(cmd);
 
3525
        transport_kunmap_data_sg(cmd);
3526
3526
        buf = NULL;
3527
3527
 
3528
3528
        pr_debug("SPC-3 PR [%s] Extracted initiator %s identifier: %s"
3787
3787
                                        " REGISTER_AND_MOVE\n");
3788
3788
        }
3789
3789
 
3790
 
        transport_kunmap_first_data_page(cmd);
 
3790
        transport_kunmap_data_sg(cmd);
3791
3791
 
3792
3792
        core_scsi3_put_pr_reg(dest_pr_reg);
3793
3793
        return 0;
3794
3794
out:
3795
3795
        if (buf)
3796
 
                transport_kunmap_first_data_page(cmd);
 
3796
                transport_kunmap_data_sg(cmd);
3797
3797
        if (dest_se_deve)
3798
3798
                core_scsi3_lunacl_undepend_item(dest_se_deve);
3799
3799
        if (dest_node_acl)
3867
3867
        scope = (cdb[2] & 0xf0);
3868
3868
        type = (cdb[2] & 0x0f);
3869
3869
 
3870
 
        buf = transport_kmap_first_data_page(cmd);
 
3870
        buf = transport_kmap_data_sg(cmd);
3871
3871
        /*
3872
3872
         * From PERSISTENT_RESERVE_OUT parameter list (payload)
3873
3873
         */
3885
3885
                aptpl = (buf[17] & 0x01);
3886
3886
                unreg = (buf[17] & 0x02);
3887
3887
        }
3888
 
        transport_kunmap_first_data_page(cmd);
 
3888
        transport_kunmap_data_sg(cmd);
3889
3889
        buf = NULL;
3890
3890
 
3891
3891
        /*
3985
3985
                return -EINVAL;
3986
3986
        }
3987
3987
 
3988
 
        buf = transport_kmap_first_data_page(cmd);
 
3988
        buf = transport_kmap_data_sg(cmd);
3989
3989
        buf[0] = ((su_dev->t10_pr.pr_generation >> 24) & 0xff);
3990
3990
        buf[1] = ((su_dev->t10_pr.pr_generation >> 16) & 0xff);
3991
3991
        buf[2] = ((su_dev->t10_pr.pr_generation >> 8) & 0xff);
4019
4019
        buf[6] = ((add_len >> 8) & 0xff);
4020
4020
        buf[7] = (add_len & 0xff);
4021
4021
 
4022
 
        transport_kunmap_first_data_page(cmd);
 
4022
        transport_kunmap_data_sg(cmd);
4023
4023
 
4024
4024
        return 0;
4025
4025
}
4045
4045
                return -EINVAL;
4046
4046
        }
4047
4047
 
4048
 
        buf = transport_kmap_first_data_page(cmd);
 
4048
        buf = transport_kmap_data_sg(cmd);
4049
4049
        buf[0] = ((su_dev->t10_pr.pr_generation >> 24) & 0xff);
4050
4050
        buf[1] = ((su_dev->t10_pr.pr_generation >> 16) & 0xff);
4051
4051
        buf[2] = ((su_dev->t10_pr.pr_generation >> 8) & 0xff);
4104
4104
 
4105
4105
err:
4106
4106
        spin_unlock(&se_dev->dev_reservation_lock);
4107
 
        transport_kunmap_first_data_page(cmd);
 
4107
        transport_kunmap_data_sg(cmd);
4108
4108
 
4109
4109
        return 0;
4110
4110
}
4128
4128
                return -EINVAL;
4129
4129
        }
4130
4130
 
4131
 
        buf = transport_kmap_first_data_page(cmd);
 
4131
        buf = transport_kmap_data_sg(cmd);
4132
4132
 
4133
4133
        buf[0] = ((add_len << 8) & 0xff);
4134
4134
        buf[1] = (add_len & 0xff);
4160
4160
        buf[4] |= 0x02; /* PR_TYPE_WRITE_EXCLUSIVE */
4161
4161
        buf[5] |= 0x01; /* PR_TYPE_EXCLUSIVE_ACCESS_ALLREG */
4162
4162
 
4163
 
        transport_kunmap_first_data_page(cmd);
 
4163
        transport_kunmap_data_sg(cmd);
4164
4164
 
4165
4165
        return 0;
4166
4166
}
4190
4190
                return -EINVAL;
4191
4191
        }
4192
4192
 
4193
 
        buf = transport_kmap_first_data_page(cmd);
 
4193
        buf = transport_kmap_data_sg(cmd);
4194
4194
 
4195
4195
        buf[0] = ((su_dev->t10_pr.pr_generation >> 24) & 0xff);
4196
4196
        buf[1] = ((su_dev->t10_pr.pr_generation >> 16) & 0xff);
4311
4311
        buf[6] = ((add_len >> 8) & 0xff);
4312
4312
        buf[7] = (add_len & 0xff);
4313
4313
 
4314
 
        transport_kunmap_first_data_page(cmd);
 
4314
        transport_kunmap_data_sg(cmd);
4315
4315
 
4316
4316
        return 0;
4317
4317
}