Linux 3.4.80
Greg KH
maintainerI'm announcing the release of the 3.4.80 kernel.
All users of the 3.4 kernel series must upgrade.
The updated 3.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.4.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 drivers/acpi/bus.c | 9 +++ drivers/gpu/drm/radeon/evergreen_cs.c | 5 +- drivers/gpu/drm/radeon/r600.c | 13 +++-- drivers/gpu/drm/radeon/r600_cs.c | 5 +- drivers/gpu/drm/radeon/r600d.h | 1 drivers/gpu/drm/radeon/radeon_atombios.c | 4 + drivers/gpu/drm/radeon/radeon_i2c.c | 3 + drivers/gpu/drm/radeon/radeon_pm.c | 6 +- drivers/infiniband/hw/qib/qib_ud.c | 9 +++ drivers/iommu/intel-iommu.c | 2 drivers/md/dm-sysfs.c | 10 +++- drivers/md/dm.c | 11 ++++ drivers/md/dm.h | 2 drivers/md/persistent-data/dm-space-map-common.c | 6 ++ drivers/mmc/host/atmel-mci.c | 13 +++++ drivers/mtd/nand/mxc_nand.c | 1 drivers/pci/pci.c | 14 +++--- drivers/rtc/rtc-cmos.c | 52 ++++++++++++++++++++++- drivers/spi/spi.c | 4 + fs/exofs/ore.c | 37 +++++++++++----- fs/hpfs/dir.c | 10 ++-- fs/nfs/nfs4proc.c | 4 - fs/nfs/nfs4xdr.c | 47 +++++++++++++------- include/linux/audit.h | 2 include/linux/sched.h | 1 include/scsi/osd_ore.h | 1 kernel/sched/core.c | 3 - kernel/sched/fair.c | 7 ++- kernel/sched/rt.c | 35 ++++++++++++--- kernel/sched/sched.h | 1 kernel/time/timekeeping.c | 14 +++--- mm/slub.c | 8 +++ net/sunrpc/clnt.c | 8 ++- security/selinux/ss/policydb.c | 14 +++++- tools/power/x86/turbostat/turbostat.c | 11 ++-- 36 files changed, 288 insertions(+), 87 deletions(-)
AKASHI Takahiro (1):
audit: correct a type mismatch in audit_syscall_exit()
Al Viro (1):
hpfs: deadlock and race in directory lseek()
Alex Deucher (3):
drm/radeon: warn users when hw_i2c is enabled (v2) drm/radeon: set the full cache bit for fences on r7xx+ drm/radeon/DCE4+: clear bios scratch dpms bit (v2)
Alex Williamson (1):
intel-iommu: fix off-by-one in pagetable freeing
Boaz Harrosh (1):
ore: Fix wrong math in allocation of per device BIO
Borislav Petkov (1):
rtc-cmos: Add an alarm disable quirk
Colin Cross (2):
sched/rt: Fix SCHED_RR across cgroups
3.4.y: timekeeping: fix 32-bit overflow in get_monotonic_boottime
Daniel Santos (1):
spidev: fix hang when transfer_one_message fails
Greg Kroah-Hartman (1):
Linux 3.4.80
Ira Weiny (1):
IB/qib: Fix QP check when looping back to/from QP1
Joe Thornber (1):
dm space map common: make sure new space is used during extend
John Stultz (1):
timekeeping: Avoid possible deadlock from clock_was_set_delayed
Josh Triplett (1):
turbostat: Use GCC's CPUID functions to support PIC
Li Zefan (1):
slub: Fix calculation of cpu slabs
Ludovic Desroches (1):
mmc: atmel-mci: fix timeout errors in SDIO mode when using DMA
Marek Olšák (1):
drm/radeon: skip colorbuffer checking if COLOR_INFO.FORMAT is set to INVALID
Mark Brown (1):
ACPI / init: Flag use of ACPI and ACPI idioms for power supplies to regulator API
Michael Grzeschik (1):
mtd: mxc_nand: remove duplicated ecc_stats counting
Michel Dänzer (1):
radeon/pm: Guard access to rdev->pm.power_state array
Mike Galbraith (1):
sched,rt: fix isolated CPUs leaving root_task_group indefinitely throttled
Mikulas Patocka (1):
dm: wait until embedded kobject is released before destroying a device
Peter Boonstoppel (1):
sched: Unthrottle rt runqueues in __disable_runtime()
Tetsuo Handa (1):
SELinux: Fix memory leak upon loading policy
Trond Myklebust (1):
NFSv4: OPEN must handle the NFS4ERR_IO return code correctly
Weston Andros Adamson (2):
nfs4.1: properly handle ENOTSUP in SECINFO_NO_NAME
sunrpc: Fix infinite loop in RPC state machine
Yijing Wang (1):
PCI: Enable ARI if dev and upstream bridge support it; disable otherwise
Ying Xue (1):
sched/rt: Avoid updating RT entry timeout twice within one tick period
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 4 -SUBLEVEL = 79 +SUBLEVEL = 80 EXTRAVERSION = NAME = Saber-toothed Squirrel
drivers/acpi/bus.c +9 -0
@@ -33,6 +33,7 @@#include <linux/proc_fs.h> #include <linux/acpi.h> #include <linux/slab.h> +#include <linux/regulator/machine.h> #ifdef CONFIG_X86 #include <asm/mpspec.h> #endif
@@ -921,6 +922,14 @@ void __init acpi_early_init(void) goto error0; } +/* +* If the system is using ACPI then we can be reasonably +* confident that any regulators are managed by the firmware +* so tell the regulator core it has everything it needs to +* know. +*/ +regulator_has_full_constraints (); +return ; error0:
drivers/gpu/drm/radeon/evergreen_cs.c +4 -1
@@ -942,7 +942,10 @@ static int evergreen_cs_track_check(struct radeon_cs_parser *p)if (track->cb_dirty) { tmp = track->cb_target_mask;for (i =0 ; i <8 ; i++) { -if ((tmp >> (i *4 )) &0xF ) { +u32 format =G_028C70_FORMAT (track->cb_color_info[i]); + +if (format !=V_028C70_COLOR_INVALID && + (tmp >> (i *4 )) &0xF ) {/* at least one component is enabled */ if (track->cb_color_bo[i] ==NULL ) { dev_warn(p->dev, "%s:%d mask 0x%08X | 0x%08X no cb for %d\n",
drivers/gpu/drm/radeon/r600.c +7 -6
@@ -2313,14 +2313,17 @@ void r600_fence_ring_emit(struct radeon_device *rdev, struct radeon_fence *fence) {struct radeon_ring *ring = &rdev->ring[fence->ring]; +u32 cp_coher_cntl =PACKET3_TC_ACTION_ENA |PACKET3_VC_ACTION_ENA | +PACKET3_SH_ACTION_ENA ; + +if (rdev->family >=CHIP_RV770 ) + cp_coher_cntl |=PACKET3_FULL_CACHE_ENA ;if (rdev->wb.use_event) {u64 addr = rdev->fence_drv[fence->ring].gpu_addr;/* flush read cache over gart */ radeon_ring_write (ring,PACKET3 (PACKET3_SURFACE_SYNC ,3 )); -radeon_ring_write (ring,PACKET3_TC_ACTION_ENA | -PACKET3_VC_ACTION_ENA | -PACKET3_SH_ACTION_ENA ); +radeon_ring_write (ring, cp_coher_cntl);radeon_ring_write (ring,0xFFFFFFFF );radeon_ring_write (ring,0 );radeon_ring_write (ring,10 );/* poll interval */
@@ -2334,9 +2337,7 @@ void r600_fence_ring_emit(struct radeon_device *rdev, }else {/* flush read cache over gart */ radeon_ring_write (ring,PACKET3 (PACKET3_SURFACE_SYNC ,3 )); -radeon_ring_write (ring,PACKET3_TC_ACTION_ENA | -PACKET3_VC_ACTION_ENA | -PACKET3_SH_ACTION_ENA ); +radeon_ring_write (ring, cp_coher_cntl);radeon_ring_write (ring,0xFFFFFFFF );radeon_ring_write (ring,0 );radeon_ring_write (ring,10 );/* poll interval */
drivers/gpu/drm/radeon/r600_cs.c +4 -1
@@ -747,7 +747,10 @@ static int r600_cs_track_check(struct radeon_cs_parser *p)if (track->cb_dirty) { tmp = track->cb_target_mask;for (i =0 ; i <8 ; i++) { -if ((tmp >> (i *4 )) &0xF ) { +u32 format =G_0280A0_FORMAT (track->cb_color_info[i]); + +if (format !=V_0280A0_COLOR_INVALID && + (tmp >> (i *4 )) &0xF ) {/* at least one component is enabled */ if (track->cb_color_bo[i] ==NULL ) { dev_warn(p->dev, "%s:%d mask 0x%08X | 0x%08X no cb for %d\n",
drivers/gpu/drm/radeon/r600d.h +1 -0
@@ -873,6 +873,7 @@#define PACKET3_INDIRECT_BUFFER 0x32#define PACKET3_SURFACE_SYNC 0x43# define PACKET3_CB0_DEST_BASE_ENA (1 << 6) +# define PACKET3_FULL_CACHE_ENA (1 << 20)/* r7xx+ only */ # define PACKET3_TC_ACTION_ENA (1 << 23)# define PACKET3_VC_ACTION_ENA (1 << 24)# define PACKET3_CB_ACTION_ENA (1 << 25)
drivers/gpu/drm/radeon/radeon_atombios.c +4 -0
@@ -2785,6 +2785,10 @@ void radeon_atom_initialize_bios_scratch_regs(struct drm_device *dev)/* tell the bios not to handle mode switching */ bios_6_scratch |=ATOM_S6_ACC_BLOCK_DISPLAY_SWITCH ; +/* clear the vbios dpms state */ +if (ASIC_IS_DCE4 (rdev)) + bios_2_scratch &= ~ATOM_S2_DEVICE_DPMS_STATE ; +if (rdev->family >=CHIP_R600 ) {WREG32 (R600_BIOS_2_SCRATCH , bios_2_scratch);WREG32 (R600_BIOS_6_SCRATCH , bios_6_scratch);
drivers/gpu/drm/radeon/radeon_i2c.c +3 -0
@@ -1020,6 +1020,9 @@ void radeon_i2c_destroy(struct radeon_i2c_chan *i2c)/* Add the default buses */ void radeon_i2c_init (struct radeon_device *rdev) { +if (radeon_hw_i2c) +DRM_INFO ("hw_i2c forced on, you may experience display detection problems!\n" ); +if (rdev->is_atom_bios)radeon_atombios_i2c_init (rdev);else
drivers/gpu/drm/radeon/radeon_pm.c +4 -2
@@ -587,8 +587,10 @@ void radeon_pm_resume(struct radeon_device *rdev) rdev->pm.current_clock_mode_index =0 ; rdev->pm.current_sclk = rdev->pm.default_sclk; rdev->pm.current_mclk = rdev->pm.default_mclk; - rdev->pm.current_vddc = rdev->pm.power_state[rdev->pm.default_power_state_index].clock_info[0 ].voltage.voltage; - rdev->pm.current_vddci = rdev->pm.power_state[rdev->pm.default_power_state_index].clock_info[0 ].voltage.vddci; +if (rdev->pm.power_state) { + rdev->pm.current_vddc = rdev->pm.power_state[rdev->pm.default_power_state_index].clock_info[0 ].voltage.voltage; + rdev->pm.current_vddci = rdev->pm.power_state[rdev->pm.default_power_state_index].clock_info[0 ].voltage.vddci; + }if (rdev->pm.pm_method ==PM_METHOD_DYNPM && rdev->pm.dynpm_state ==DYNPM_STATE_SUSPENDED ) { rdev->pm.dynpm_state =DYNPM_STATE_ACTIVE ;
drivers/infiniband/hw/qib/qib_ud.c +8 -1
@@ -57,13 +57,20 @@ static void qib_ud_loopback(struct qib_qp *sqp, struct qib_swqe *swqe)struct qib_sge *sge;struct ib_wc wc;u32 length; +enum ib_qp_type sqptype, dqptype; qp =qib_lookup_qpn (ibp, swqe->wr.wr.ud.remote_qpn);if (!qp) { ibp->n_pkt_drops++;return ; } -if (qp->ibqp.qp_type != sqp->ibqp.qp_type || + + sqptype = sqp->ibqp.qp_type ==IB_QPT_GSI ? +IB_QPT_UD : sqp->ibqp.qp_type; + dqptype = qp->ibqp.qp_type ==IB_QPT_GSI ? +IB_QPT_UD : qp->ibqp.qp_type; + +if (dqptype != sqptype || !(ib_qib_state_ops[qp->state] &QIB_PROCESS_RECV_OK )) { ibp->n_pkt_drops++; goto drop;
drivers/iommu/intel-iommu.c +1 -1
@@ -913,7 +913,7 @@ static void dma_pte_free_level(struct dmar_domain *domain, int level,/* If range covers entire pagetable, free it */ if (!(start_pfn > level_pfn || - last_pfn < level_pfn +level_size (level))) { + last_pfn < level_pfn +level_size (level) -1 )) {dma_clear_pte (pte);domain_flush_cache (domain, pte,sizeof (*pte));free_pgtable_page (level_pte);
drivers/md/dm-sysfs.c +9 -1
@@ -79,6 +79,11 @@ static const struct sysfs_ops dm_sysfs_ops = { .show = dm_attr_show, }; +static void dm_kobject_release (struct kobject *kobj) +{ +complete (dm_get_completion_from_kobject (kobj)); +} +/* * dm kobject is embedded in mapped_device structure * no need to define release function here
@@ -86,6 +91,7 @@ static const struct sysfs_ops dm_sysfs_ops = {static struct kobj_type dm_ktype = { .sysfs_ops = &dm_sysfs_ops, .default_attrs = dm_attrs, + .release = dm_kobject_release, };/*
@@ -104,5 +110,7 @@ int dm_sysfs_init(struct mapped_device *md)*/ void dm_sysfs_exit (struct mapped_device *md) { -kobject_put (dm_kobject (md)); +struct kobject *kobj =dm_kobject (md); +kobject_put (kobj); +wait_for_completion (dm_get_completion_from_kobject (kobj)); }
drivers/md/dm.c +11 -0
@@ -194,6 +194,9 @@ struct mapped_device {/* sysfs handle */ struct kobject kobj; +/* wait until the kobject is released */ +struct completion kobj_completion; +/* zero-length flush that will be cloned and submitted to targets */ struct bio flush_bio; };
@@ -1891,6 +1894,7 @@ static struct mapped_device *alloc_dev(int minor)init_waitqueue_head (&md->wait);INIT_WORK (&md->work, dm_wq_work);init_waitqueue_head (&md->eventq); +init_completion (&md->kobj_completion); md->disk->major = _major; md->disk->first_minor = minor;
@@ -2705,6 +2709,13 @@ struct mapped_device *dm_get_from_kobject(struct kobject *kobj)return md; } +struct completion *dm_get_completion_from_kobject (struct kobject *kobj) +{ + struct mapped_device *md = container_of(kobj, struct mapped_device, kobj); + +return &md->kobj_completion; +} +int dm_suspended_md (struct mapped_device *md) {return test_bit (DMF_SUSPENDED , &md->flags);
drivers/md/dm.h +2 -0
@@ -15,6 +15,7 @@#include <linux/list.h> #include <linux/blkdev.h> #include <linux/hdreg.h> +#include <linux/completion.h> /* * Suspend feature flags
@@ -123,6 +124,7 @@ int dm_sysfs_init(struct mapped_device *md);void dm_sysfs_exit (struct mapped_device *md);struct kobject *dm_kobject (struct mapped_device *md);struct mapped_device *dm_get_from_kobject (struct kobject *kobj); +struct completion *dm_get_completion_from_kobject (struct kobject *kobj);/* * Targets for linear and striped mappings
drivers/md/persistent-data/dm-space-map-common.c +5 -1
@@ -244,6 +244,10 @@ int sm_ll_extend(struct ll_disk *ll, dm_block_t extra_blocks)return -EINVAL ; } +/* +* We need to set this before the dm_tm_new_block() call below. +*/ + ll->nr_blocks = nr_blocks;for (i = old_blocks; i < blocks; i++) {struct dm_block *b;struct disk_index_entry idx;
@@ -251,6 +255,7 @@ int sm_ll_extend(struct ll_disk *ll, dm_block_t extra_blocks) r =dm_tm_new_block (ll->tm, &dm_sm_bitmap_validator, &b);if (r <0 )return r; + idx.blocknr =cpu_to_le64 (dm_block_location (b)); r =dm_tm_unlock (ll->tm, b);
@@ -265,7 +270,6 @@ int sm_ll_extend(struct ll_disk *ll, dm_block_t extra_blocks)return r; } - ll->nr_blocks = nr_blocks;return 0 ; }
drivers/mmc/host/atmel-mci.c +12 -1
@@ -1022,11 +1022,22 @@ static void atmci_start_request(struct atmel_mci *host, iflags |=ATMCI_CMDRDY ; cmd = mrq->cmd; cmdflags =atmci_prepare_command (slot->mmc, cmd); -atmci_send_command (host, cmd, cmdflags); + +/* +* DMA transfer should be started before sending the command to avoid +* unexpected errors especially for read operations in SDIO mode. +* Unfortunately, in PDC mode, command has to be sent before starting +* the transfer. +*/ +if (host->submit_data != &atmci_submit_data_dma) +atmci_send_command (host, cmd, cmdflags);if (data) host->submit_data (host, data); +if (host->submit_data == &atmci_submit_data_dma) +atmci_send_command (host, cmd, cmdflags); +if (mrq->stop) { host->stop_cmdr =atmci_prepare_command (slot->mmc, mrq->stop); host->stop_cmdr |=ATMCI_CMDR_STOP_XFER ;
drivers/mtd/nand/mxc_nand.c +0 -1
@@ -596,7 +596,6 @@ static int mxc_nand_correct_data_v2_v3(struct mtd_info *mtd, u_char *dat, ecc_stat >>=4 ; }while (--no_subpages); - mtd->ecc_stats.corrected += ret;pr_debug ("%d Symbol Correctable RS-ECC Error\n" , ret);return ret;
drivers/pci/pci.c +7 -7
@@ -1984,10 +1984,6 @@ void pci_enable_ari(struct pci_dev *dev)if (pcie_ari_disabled || !pci_is_pcie (dev) || dev->devfn)return ; - pos =pci_find_ext_capability (dev,PCI_EXT_CAP_ID_ARI ); -if (!pos) -return ; - bridge = dev->bus->self;if (!bridge || !pci_is_pcie (bridge))return ;
@@ -2006,10 +2002,14 @@ void pci_enable_ari(struct pci_dev *dev)return ;pci_read_config_word (bridge, pos +PCI_EXP_DEVCTL2 , &ctrl); - ctrl |=PCI_EXP_DEVCTL2_ARI ; +if (pci_find_ext_capability (dev,PCI_EXT_CAP_ID_ARI )) { + ctrl |=PCI_EXP_DEVCTL2_ARI ; + bridge->ari_enabled =1 ; + }else { + ctrl &= ~PCI_EXP_DEVCTL2_ARI ; + bridge->ari_enabled =0 ; + }pci_write_config_word (bridge, pos +PCI_EXP_DEVCTL2 , ctrl); - - bridge->ari_enabled =1 ; }/**
drivers/rtc/rtc-cmos.c +51 -1
80 lines not on this page · raw message
drivers/spi/spi.c +3 -1
@@ -572,7 +572,9 @@ static void spi_pump_messages(struct kthread_work *work) ret = master->transfer_one_message (master, master->cur_msg);if (ret) {dev_err (&master->dev, -"failed to transfer one message from queue\n" ); +"failed to transfer one message from queue: %d\n" , ret); + master->cur_msg->status = ret; +spi_finalize_current_message (master);return ; } }
fs/exofs/ore.c +25 -12
@@ -103,7 +103,7 @@ int ore_verify_layout(unsigned total_comps, struct ore_layout *layout) layout->max_io_length = (BIO_MAX_PAGES_KMALLOC *PAGE_SIZE - layout->stripe_unit) * - layout->group_width; + (layout->group_width - layout->parity);if (layout->parity) {unsigned stripe_length = (layout->group_width - layout->parity) *
@@ -286,7 +286,8 @@ int ore_get_rw_state(struct ore_layout *layout, struct ore_components *oc,if (length) {ore_calc_stripe_info (layout, offset, length, &ios->si); ios->length = ios->si.length; - ios->nr_pages = (ios->length +PAGE_SIZE -1 ) /PAGE_SIZE ; + ios->nr_pages = ((ios->offset & (PAGE_SIZE -1 )) + + ios->length +PAGE_SIZE -1 ) /PAGE_SIZE ;if (layout->parity)_ore_post_alloc_raid_stuff (ios); }
@@ -536,6 +537,7 @@ void ore_calc_stripe_info(struct ore_layout *layout, u64 file_offset,u64 H = LmodS -G *T ;u32 N =div_u64 (H ,U ); +u32 Nlast;/* "H - (N * U)" is just "H % U" so it's bound to u32 */ u32 C = (u32)(H - (N *U )) / stripe_unit +G * group_width;
@@ -568,6 +570,10 @@ void ore_calc_stripe_info(struct ore_layout *layout, u64 file_offset, si->length =T -H ;if (si->length > length) si->length = length; + + Nlast =div_u64 (H + si->length +U -1 ,U ); + si->maxdevUnits = Nlast -N ; + si->M =M ; }EXPORT_SYMBOL (ore_calc_stripe_info);
@@ -583,13 +589,16 @@ int _ore_add_stripe_unit(struct ore_io_state *ios, unsigned *cur_pg,int ret;if (per_dev->bio ==NULL ) { -unsigned pages_in_stripe = ios->layout->group_width * - (ios->layout->stripe_unit /PAGE_SIZE ); -unsigned nr_pages = ios->nr_pages * ios->layout->group_width / - (ios->layout->group_width - - ios->layout->parity); -unsigned bio_size = (nr_pages + pages_in_stripe) / - ios->layout->group_width; +unsigned bio_size; + +if (!ios->reading) { + bio_size = ios->si.maxdevUnits; + }else { + bio_size = (ios->si.maxdevUnits +1 ) * + (ios->layout->group_width - ios->layout->parity) / + ios->layout->group_width; + } + bio_size *= (ios->layout->stripe_unit /PAGE_SIZE ); per_dev->bio =bio_kmalloc (GFP_KERNEL , bio_size);if (unlikely (!per_dev->bio)) {
@@ -609,8 +618,12 @@ int _ore_add_stripe_unit(struct ore_io_state *ios, unsigned *cur_pg, added_len =bio_add_pc_page (q, per_dev->bio, pages[pg], pglen, pgbase);if (unlikely (pglen != added_len)) { -ORE_DBGMSG ("Failed bio_add_pc_page bi_vcnt=%u\n" , - per_dev->bio->bi_vcnt); +/* If bi_vcnt == bi_max then this is a SW BUG */ +ORE_DBGMSG ("Failed bio_add_pc_page bi_vcnt=0x%x " +"bi_max=0x%x BIO_MAX=0x%x cur_len=0x%x\n" , + per_dev->bio->bi_vcnt, + per_dev->bio->bi_max_vecs, +BIO_MAX_PAGES_KMALLOC , cur_len); ret = -ENOMEM ; goto out; }
@@ -1099,7 +1112,7 @@ int ore_truncate(struct ore_layout *layout, struct ore_components *oc, size_attr->attr = g_attr_logical_length; size_attr->attr.val_ptr = &size_attr->newsize; -ORE_DBGMSG ("trunc(0x%llx) obj_offset=0x%llx dev=%d\n" , +ORE_DBGMSG2 ("trunc(0x%llx) obj_offset=0x%llx dev=%d\n" ,_LLU (oc->comps->obj.id),_LLU (obj_size), i); ret =_truncate_mirrors (ios, i * ios->layout->mirrors_p1, &size_attr->attr);
fs/hpfs/dir.c +6 -4
@@ -33,25 +33,27 @@ static loff_t hpfs_dir_lseek(struct file *filp, loff_t off, int whence)if (whence ==SEEK_DATA || whence ==SEEK_HOLE )return -EINVAL ; +mutex_lock (&i->i_mutex);hpfs_lock (s);/*printk("dir lseek\n");*/ if (new_off ==0 || new_off ==1 || new_off ==11 || new_off ==12 || new_off ==13 ) goto ok; -mutex_lock (&i->i_mutex); pos = ((loff_t )hpfs_de_as_down_as_possible (s, hpfs_inode->i_dno) <<4 ) +1 ;while (pos != new_off) {if (map_pos_dirent (i, &pos, &qbh))hpfs_brelse4 (&qbh);else goto fail;if (pos ==12 ) goto fail; } -mutex_unlock (&i->i_mutex); +hpfs_add_pos (i, &filp->f_pos); ok: + filp->f_pos = new_off;hpfs_unlock (s); -return filp->f_pos = new_off; -fail:mutex_unlock (&i->i_mutex); +return new_off; +fail:/*printk("illegal lseek: %016llx\n", new_off);*/ hpfs_unlock (s); +mutex_unlock (&i->i_mutex);return -ESPIPE ; }
fs/nfs/nfs4proc.c +2 -2
@@ -6394,7 +6394,7 @@ nfs41_proc_secinfo_no_name(struct nfs_server *server, struct nfs_fh *fhandle,switch (err) {case 0 :case -NFS4ERR_WRONGSEC : -case -NFS4ERR_NOTSUPP : +case -ENOTSUPP : goto out;default : err =nfs4_handle_exception (server, err, &exception);
@@ -6426,7 +6426,7 @@ nfs41_find_root_sec(struct nfs_server *server, struct nfs_fh *fhandle,* Fall back on "guess and check" method if * the server doesn't support SECINFO_NO_NAME */ -if (err == -NFS4ERR_WRONGSEC || err == -NFS4ERR_NOTSUPP ) { +if (err == -NFS4ERR_WRONGSEC || err == -ENOTSUPP ) { err =nfs4_find_root_sec (server, fhandle, info); goto out_freepage; }
fs/nfs/nfs4xdr.c +31 -16
68 lines not on this page · raw message
include/linux/audit.h +1 -1
@@ -487,7 +487,7 @@ static inline void audit_syscall_exit(void *pt_regs) {if (unlikely (current->audit_context)) {int success =is_syscall_success (pt_regs); -int return_code =regs_return_value (pt_regs); +long return_code =regs_return_value (pt_regs);__audit_syscall_exit (success, return_code); }
include/linux/sched.h +1 -0
@@ -1237,6 +1237,7 @@ struct sched_entity {struct sched_rt_entity {struct list_head run_list;unsigned long timeout; +unsigned long watchdog_stamp;unsigned int time_slice;int nr_cpus_allowed;
include/scsi/osd_ore.h +1 -0
@@ -102,6 +102,7 @@ struct ore_striping_info {unsigned unit_off;unsigned cur_pg;unsigned cur_comp; +unsigned maxdevUnits; };struct ore_io_state ;
kernel/sched/core.c +0 -3
@@ -5301,9 +5301,6 @@ static void migrate_tasks(unsigned int dead_cpu)*/ rq->stop =NULL ; -/* Ensure any throttled groups are reachable by pick_next_task */ -unthrottle_offline_cfs_rqs (rq); -for ( ; ; ) {/* * There's this thread running, bail when that's the only
kernel/sched/fair.c +5 -2
@@ -2071,7 +2071,7 @@ static void destroy_cfs_bandwidth(struct cfs_bandwidth *cfs_b)hrtimer_cancel (&cfs_b->slack_timer); } -void unthrottle_offline_cfs_rqs (struct rq *rq) +static void unthrottle_offline_cfs_rqs (struct rq *rq) {struct cfs_rq *cfs_rq;
@@ -2125,7 +2125,7 @@ static inline struct cfs_bandwidth *tg_cfs_bandwidth(struct task_group *tg) return NULL; }static inline void destroy_cfs_bandwidth (struct cfs_bandwidth *cfs_b) {} -void unthrottle_offline_cfs_rqs (struct rq *rq) {} +static inline void unthrottle_offline_cfs_rqs (struct rq *rq) {}#endif /* CONFIG_CFS_BANDWIDTH */
@@ -5171,6 +5171,9 @@ static void rq_online_fair(struct rq *rq)static void rq_offline_fair (struct rq *rq) {update_sysctl (); + +/* Ensure any throttled groups are reachable by pick_next_task */ +unthrottle_offline_cfs_rqs (rq); }#endif /* CONFIG_SMP */
kernel/sched/rt.c +29 -6
@@ -685,6 +685,7 @@ balanced:* runtime - in which case borrowing doesn't make sense. */ rt_rq->rt_runtime =RUNTIME_INF ; + rt_rq->rt_throttled =0 ;raw_spin_unlock (&rt_rq->rt_runtime_lock);raw_spin_unlock (&rt_b->rt_runtime_lock); }
@@ -782,6 +783,19 @@ static int do_sched_rt_period_timer(struct rt_bandwidth *rt_b, int overrun)const struct cpumask *span; span =sched_rt_period_mask (); +#ifdef CONFIG_RT_GROUP_SCHED +/* +* FIXME: isolated CPUs should really leave the root task group, +* whether they are isolcpus or were isolated via cpusets, lest +* the timer run on a CPU which does not service all runqueues, +* potentially leaving other CPUs indefinitely throttled. If +* isolation is really required, the user will turn the throttle +* off to kill the perturbations it causes anyway. Meanwhile, +* this maintains functionality for boot and/or troubleshooting. +*/ +if (rt_b == &root_task_group.rt_bandwidth) + span = cpu_online_mask; +#endif for_each_cpu (i, span) {int enqueue =0 ;struct rt_rq *rt_rq =sched_rt_period_rt_rq (rt_b, i);
@@ -1988,7 +2002,11 @@ static void watchdog(struct rq *rq, struct task_struct *p)if (soft !=RLIM_INFINITY ) {unsigned long next; - p->rt.timeout++; +if (p->rt.watchdog_stamp != jiffies) { + p->rt.timeout++; + p->rt.watchdog_stamp = jiffies; + } + next =DIV_ROUND_UP (min (soft, hard),USEC_PER_SEC /HZ );if (p->rt.timeout > next) p->cputime_expires.sched_exp = p->se.sum_exec_runtime;
@@ -1997,6 +2015,8 @@ static void watchdog(struct rq *rq, struct task_struct *p)static void task_tick_rt (struct rq *rq,struct task_struct *p,int queued) { +struct sched_rt_entity *rt_se = &p->rt; +update_curr_rt (rq);watchdog (rq, p);
@@ -2014,12 +2034,15 @@ static void task_tick_rt(struct rq *rq, struct task_struct *p, int queued) p->rt.time_slice =RR_TIMESLICE ;/* -* Requeue to the end of queue if we are not the only element -* on the queue: +* Requeue to the end of queue if we (and all of our ancestors) are the +* only element on the queue */ -if (p->rt.run_list.prev != p->rt.run_list.next) { -requeue_task_rt (rq, p,0 ); -set_tsk_need_resched (p); +for_each_sched_rt_entity (rt_se) { +if (rt_se->run_list.prev != rt_se->run_list.next) { +requeue_task_rt (rq, p,0 ); +set_tsk_need_resched (p); +return ; + } } }
kernel/sched/sched.h +0 -1
@@ -1138,7 +1138,6 @@ extern void print_rt_stats(struct seq_file *m, int cpu);extern void init_cfs_rq (struct cfs_rq *cfs_rq);extern void init_rt_rq (struct rt_rq *rt_rq,struct rq *rq); -extern void unthrottle_offline_cfs_rqs (struct rq *rq);extern void cfs_bandwidth_usage_inc (void );extern void cfs_bandwidth_usage_dec (void );
kernel/time/timekeeping.c +9 -5
@@ -988,7 +988,8 @@ static void timekeeping_adjust(s64 offset)* * Returns the unconsumed cycles. */ -static cycle_t logarithmic_accumulation (cycle_t offset,int shift) +static cycle_t logarithmic_accumulation (cycle_t offset,int shift, +unsigned int *clock_set) {u64 nsecps = (u64 )NSEC_PER_SEC << timekeeper.shift;u64 raw_nsecs;
@@ -1010,7 +1011,7 @@ static cycle_t logarithmic_accumulation(cycle_t offset, int shift) timekeeper.xtime.tv_sec += leap; timekeeper.wall_to_monotonic.tv_sec -= leap;if (leap) -clock_was_set_delayed (); + *clock_set =1 ; }/* Accumulate raw time */
@@ -1042,6 +1043,7 @@ static void update_wall_time(void)struct clocksource *clock;cycle_t offset;int shift =0 , maxshift; +unsigned int clock_set =0 ;unsigned long flags;write_seqlock_irqsave (&timekeeper.lock, flags);
@@ -1077,7 +1079,7 @@ static void update_wall_time(void) maxshift = (64 - (ilog2 (ntp_tick_length ())+1 )) -1 ; shift =min (shift, maxshift);while (offset >= timekeeper.cycle_interval) { - offset =logarithmic_accumulation (offset, shift); + offset =logarithmic_accumulation (offset, shift, &clock_set);if (offset < timekeeper.cycle_interval<<shift) shift--; }
@@ -1131,7 +1133,7 @@ static void update_wall_time(void) timekeeper.xtime.tv_sec += leap; timekeeper.wall_to_monotonic.tv_sec -= leap;if (leap) -clock_was_set_delayed (); + clock_set =1 ; }timekeeping_update (false);
@@ -1139,6 +1141,8 @@ static void update_wall_time(void) out:write_sequnlock_irqrestore (&timekeeper.lock, flags); +if (clock_set) +clock_was_set_delayed (); }/**
@@ -1193,7 +1197,7 @@ void get_monotonic_boottime(struct timespec *ts) }while (read_seqretry (&timekeeper.lock, seq));set_normalized_timespec (ts, ts->tv_sec + tomono.tv_sec + sleep.tv_sec, - ts->tv_nsec + tomono.tv_nsec + sleep.tv_nsec + nsecs); + (s64 )ts->tv_nsec + tomono.tv_nsec + sleep.tv_nsec + nsecs); }EXPORT_SYMBOL_GPL (get_monotonic_boottime);
mm/slub.c +7 -1
@@ -4520,7 +4520,13 @@ static ssize_t show_slab_objects(struct kmem_cache *s, page = c->partial;if (page) { - x = page->pobjects; + node =page_to_nid (page); +if (flags &SO_TOTAL ) +WARN_ON_ONCE (1 ); +else if (flags &SO_OBJECTS ) +WARN_ON_ONCE (1 ); +else + x = page->pages; total += x; nodes[node] += x; }
net/sunrpc/clnt.c +6 -2
@@ -1331,9 +1331,13 @@ call_refreshresult(struct rpc_task *task) task->tk_action = call_refresh;switch (status) {case 0 : -if (rpcauth_uptodatecred (task)) +if (rpcauth_uptodatecred (task)) { task->tk_action = call_allocate; -return ; +return ; + } +/* Use rate-limiting and a max number of retries if refresh +* had status 0 but failed to update the cred. +*/ case -ETIMEDOUT :rpc_delay (task,3 *HZ );case -EAGAIN :
security/selinux/ss/policydb.c +13 -1
@@ -1914,7 +1914,19 @@ static int filename_trans_read(struct policydb *p, void *fp)if (rc) goto out; -hashtab_insert (p->filename_trans, ft, otype); + rc =hashtab_insert (p->filename_trans, ft, otype); +if (rc) { +/* +* Do not return -EEXIST to the caller, or the system +* will not boot. +*/ +if (rc != -EEXIST ) + goto out; +/* But free memory to avoid memory leak. */ +kfree (ft); +kfree (name); +kfree (otype); + } }hash_eval (p->filename_trans,"filenametr" );return 0 ;
tools/power/x86/turbostat/turbostat.c +6 -5
@@ -34,6 +34,7 @@#include <string.h> #include <ctype.h> #include <sched.h> +#include <cpuid.h> #define MSR_TSC 0x10#define MSR_NEHALEM_PLATFORM_INFO 0xCE
@@ -932,7 +933,7 @@ void check_cpuid() eax = ebx = ecx = edx =0 ; - asm("cpuid" :"=a" (max_level),"=b" (ebx),"=c" (ecx),"=d" (edx) :"a" (0 )); +__get_cpuid (0 , &max_level, &ebx, &ecx, &edx);if (ebx ==0x756e6547 && edx ==0x49656e69 && ecx ==0x6c65746e ) genuine_intel =1 ;
@@ -941,7 +942,7 @@ void check_cpuid()fprintf (stderr,"%.4s%.4s%.4s " , (char *)&ebx, (char *)&edx, (char *)&ecx); - asm("cpuid" :"=a" (fms),"=c" (ecx),"=d" (edx) :"a" (1 ) :"ebx" ); +__get_cpuid (1 , &fms, &ebx, &ecx, &edx); family = (fms >>8 ) &0xf ; model = (fms >>4 ) &0xf ; stepping = fms &0xf ;
@@ -963,7 +964,7 @@ void check_cpuid()* This check is valid for both Intel and AMD. */ ebx = ecx = edx =0 ; - asm("cpuid" :"=a" (max_level),"=b" (ebx),"=c" (ecx),"=d" (edx) :"a" (0x80000000 )); +__get_cpuid (0x80000000 , &max_level, &ebx, &ecx, &edx);if (max_level <0x80000007 ) {fprintf (stderr,"CPUID: no invariant TSC (max_level 0x%x)\n" , max_level);
@@ -974,7 +975,7 @@ void check_cpuid()* Non-Stop TSC is advertised by CPUID.EAX=0x80000007: EDX.bit8 * this check is valid for both Intel and AMD */ - asm("cpuid" :"=a" (eax),"=b" (ebx),"=c" (ecx),"=d" (edx) :"a" (0x80000007 )); +__get_cpuid (0x80000007 , &eax, &ebx, &ecx, &edx); has_invariant_tsc = edx & (1 <<8 );if (!has_invariant_tsc) {
@@ -987,7 +988,7 @@ void check_cpuid()* this check is valid for both Intel and AMD */ - asm("cpuid" :"=a" (eax),"=b" (ebx),"=c" (ecx),"=d" (edx) :"a" (0x6 )); +__get_cpuid (0x6 , &eax, &ebx, &ecx, &edx); has_aperf = ecx & (1 <<0 );if (!has_aperf) {fprintf (stderr,"No APERF MSR\n" );