Linux 4.10.6
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 10 -SUBLEVEL = 5 +SUBLEVEL = 6 EXTRAVERSION = NAME = Fearless Coyote
arch/parisc/include/asm/cacheflush.h +2 -21
@@ -45,28 +45,9 @@ static inline void flush_kernel_dcache_page(struct page *page)#define flush_kernel_dcache_range (start,size) \ flush_kernel_dcache_range_asm((start), (start)+(size)); -/* vmap range flushes and invalidates. Architecturally, we don't need -* the invalidate, because the CPU should refuse to speculate once an -* area has been flushed, so invalidate is left empty */ -static inline void flush_kernel_vmap_range (void *vaddr,int size) -{ -unsigned long start = (unsigned long )vaddr; - -flush_kernel_dcache_range_asm (start, start + size); -} -static inline void invalidate_kernel_vmap_range (void *vaddr,int size) -{ -unsigned long start = (unsigned long )vaddr; -void *cursor = vaddr; -for ( ; cursor < vaddr + size; cursor +=PAGE_SIZE ) { -struct page *page =vmalloc_to_page (cursor); - -if (test_and_clear_bit (PG_dcache_dirty, &page->flags)) -flush_kernel_dcache_page (page); - } -flush_kernel_dcache_range_asm (start, start + size); -} +void flush_kernel_vmap_range (void *vaddr,int size); +void invalidate_kernel_vmap_range (void *vaddr,int size);#define flush_cache_vmap (start, end) flush_cache_all()#define flush_cache_vunmap (start, end) flush_cache_all()
arch/parisc/kernel/cache.c +22 -0
@@ -633,3 +633,25 @@ flush_cache_page(struct vm_area_struct *vma, unsigned long vmaddr, unsigned long__flush_cache_page (vma, vmaddr,PFN_PHYS (pfn)); } } + +void flush_kernel_vmap_range (void *vaddr,int size) +{ +unsigned long start = (unsigned long )vaddr; + +if ((unsigned long )size > parisc_cache_flush_threshold) +flush_data_cache (); +else +flush_kernel_dcache_range_asm (start, start + size); +} +EXPORT_SYMBOL (flush_kernel_vmap_range); + +void invalidate_kernel_vmap_range (void *vaddr,int size) +{ +unsigned long start = (unsigned long )vaddr; + +if ((unsigned long )size > parisc_cache_flush_threshold) +flush_data_cache (); +else +flush_kernel_dcache_range_asm (start, start + size); +} +EXPORT_SYMBOL (invalidate_kernel_vmap_range);
arch/parisc/kernel/module.c +8 -0
@@ -620,6 +620,10 @@ int apply_relocate_add(Elf_Shdr *sechdrs,*/ *loc =fsel (val, addend);break ; +case R_PARISC_SECREL32 : +/* 32-bit section relative address. */ + *loc =fsel (val, addend); +break ;case R_PARISC_DPREL21L :/* left 21 bit of relative address */ val =lrsel (val - dp, addend);
@@ -807,6 +811,10 @@ int apply_relocate_add(Elf_Shdr *sechdrs,*/ *loc =fsel (val, addend);break ; +case R_PARISC_SECREL32 : +/* 32-bit section relative address. */ + *loc =fsel (val, addend); +break ;case R_PARISC_FPTR64 :/* 64-bit function address */ if (in_local (me, (void *)(val + addend))) {
arch/parisc/kernel/process.c +2 -0
@@ -139,6 +139,8 @@ void machine_power_off(void)printk (KERN_EMERG "System shut down completed.\n" "Please power this system off now." ); + +for (;;); }void (*pm_power_off)(void ) = machine_power_off;
arch/powerpc/boot/zImage.lds.S +1 -0
@@ -68,6 +68,7 @@ SECTIONS } #ifdef CONFIG_PPC64_BOOT_WRAPPER + . = ALIGN(256); .got : { __toc_start = .;
drivers/char/hw_random/omap-rng.c +14 -2
@@ -397,9 +397,8 @@ static int of_get_omap_rng_device_details(struct omap_rng_dev *priv, irq, err);return err; } -omap_rng_write (priv,RNG_INTMASK_REG ,RNG_SHUTDOWN_OFLO_MASK ); - priv->clk =of_clk_get (pdev->dev.of_node,0 ); + priv->clk =devm_clk_get (&pdev->dev,NULL );if (IS_ERR (priv->clk) &&PTR_ERR (priv->clk) == -EPROBE_DEFER )return -EPROBE_DEFER ;if (!IS_ERR (priv->clk)) {
@@ -408,6 +407,19 @@ static int of_get_omap_rng_device_details(struct omap_rng_dev *priv,dev_err (&pdev->dev,"unable to enable the clk, " "err = %d\n" , err); } + +/* +* On OMAP4, enabling the shutdown_oflo interrupt is +* done in the interrupt mask register. There is no +* such register on EIP76, and it's enabled by the +* same bit in the control register +*/ +if (priv->pdata->regs[RNG_INTMASK_REG ]) +omap_rng_write (priv,RNG_INTMASK_REG , +RNG_SHUTDOWN_OFLO_MASK ); +else +omap_rng_write (priv,RNG_CONTROL_REG , +RNG_SHUTDOWN_OFLO_MASK ); }return 0 ; }
drivers/cpufreq/cpufreq.c +5 -3
@@ -680,9 +680,11 @@ static ssize_t show_cpuinfo_cur_freq(struct cpufreq_policy *policy, char *buf) {unsigned int cur_freq =__cpufreq_get (policy); -if (!cur_freq) -return sprintf (buf,"<unknown>" ); -return sprintf (buf,"%u\n" , cur_freq); + +if (cur_freq) +return sprintf (buf,"%u\n" , cur_freq); + +return sprintf (buf,"<unknown>\n" ); }/**
drivers/gpu/drm/amd/amdgpu/si_dpm.c +6 -0
@@ -3497,6 +3497,12 @@ static void si_apply_state_adjust_rules(struct amdgpu_device *adev, (adev->pdev->device == 0x6667)) { max_sclk =75000 ; } + }else if (adev->asic_type ==CHIP_OLAND ) { +if ((adev->pdev->device ==0x6604 ) && + (adev->pdev->subsystem_vendor ==0x1028 ) && + (adev->pdev->subsystem_device ==0x066F )) { + max_sclk =75000 ; + } }/* Apply dpm quirks */ while (p && p->chip_device !=0 ) {
drivers/isdn/gigaset/bas-gigaset.c +3 -0
@@ -2317,6 +2317,9 @@ static int gigaset_probe(struct usb_interface *interface,return -ENODEV ; } +if (hostif->desc.bNumEndpoints <1 ) +return -ENODEV ; + dev_info(&udev->dev, "%s: Device matched (Vendor: 0x%x, Product: 0x%x)\n", __func__, le16_to_cpu(udev->descriptor.idVendor),
drivers/md/raid10.c +18 -0
@@ -1571,7 +1571,25 @@ static void raid10_make_request(struct mddev *mddev, struct bio *bio) split = bio; } +/* +* If a bio is splitted, the first part of bio will pass +* barrier but the bio is queued in current->bio_list (see +* generic_make_request). If there is a raise_barrier() called +* here, the second part of bio can't pass barrier. But since +* the first part bio isn't dispatched to underlaying disks +* yet, the barrier is never released, hence raise_barrier will +* alays wait. We have a deadlock. +* Note, this only happens in read path. For write path, the +* first part of bio is dispatched in a schedule() call +* (because of blk plug) or offloaded to raid10d. +* Quitting from the function immediately can change the bio +* order queued in bio_list and avoid the deadlock. +*/ __make_request (mddev, split); +if (split != bio &&bio_data_dir (bio) ==READ ) { +generic_make_request (bio); +break ; + } }while (split != bio);/* In case raid10d snuck in to freeze_array */
drivers/md/raid5.c +2 -1
@@ -1364,7 +1364,8 @@ static int set_syndrome_sources(struct page **srcs, (test_bit (R5_Wantdrain, &dev->flags) || test_bit(R5_InJournal, &dev->flags))) || (srctype ==SYNDROME_SRC_WRITTEN && - dev->written)) { + (dev->written || + test_bit(R5_InJournal, &dev->flags)))) { if (test_bit(R5_InJournal, &dev->flags)) srcs[slot] = sh->dev[i].orig_page; else
drivers/scsi/libiscsi.c +25 -1
@@ -560,8 +560,12 @@ static void iscsi_complete_task(struct iscsi_task *task, int state)WARN_ON_ONCE (task->state ==ISCSI_TASK_FREE ); task->state = state; -if (!list_empty (&task->running)) +spin_lock_bh (&conn->taskqueuelock); +if (!list_empty (&task->running)) { +pr_debug_once ("%s while task on list" , __func__);list_del_init (&task->running); + } +spin_unlock_bh (&conn->taskqueuelock);if (conn->task == task) conn->task =NULL ;
@@ -783,7 +787,9 @@ __iscsi_conn_send_pdu(struct iscsi_conn *conn, struct iscsi_hdr *hdr,if (session->tt->xmit_task (task)) goto free_task; }else { +spin_lock_bh (&conn->taskqueuelock);list_add_tail (&task->running, &conn->mgmtqueue); +spin_unlock_bh (&conn->taskqueuelock);iscsi_conn_queue_work (conn); }
@@ -1474,8 +1480,10 @@ void iscsi_requeue_task(struct iscsi_task *task)* this may be on the requeue list already if the xmit_task callout * is handling the r2ts while we are adding new ones */ +spin_lock_bh (&conn->taskqueuelock);if (list_empty (&task->running))list_add_tail (&task->running, &conn->requeue); +spin_unlock_bh (&conn->taskqueuelock);iscsi_conn_queue_work (conn); }EXPORT_SYMBOL_GPL (iscsi_requeue_task);
@@ -1512,22 +1520,26 @@ static int iscsi_data_xmit(struct iscsi_conn *conn)* only have one nop-out as a ping from us and targets should not * overflow us with nop-ins */ +spin_lock_bh (&conn->taskqueuelock); check_mgmt:while (!list_empty (&conn->mgmtqueue)) { conn->task =list_entry (conn->mgmtqueue.next, struct iscsi_task, running);list_del_init (&conn->task->running); +spin_unlock_bh (&conn->taskqueuelock);if (iscsi_prep_mgmt_task (conn, conn->task)) {/* regular RX path uses back_lock */ spin_lock_bh (&conn->session->back_lock);__iscsi_put_task (conn->task);spin_unlock_bh (&conn->session->back_lock); conn->task =NULL ; +spin_lock_bh (&conn->taskqueuelock);continue ; } rc =iscsi_xmit_task (conn);if (rc) goto done; +spin_lock_bh (&conn->taskqueuelock); }/* process pending command queue */
@@ -1535,19 +1547,24 @@ static int iscsi_data_xmit(struct iscsi_conn *conn) conn->task = list_entry(conn->cmdqueue.next, struct iscsi_task, running);list_del_init (&conn->task->running); +spin_unlock_bh (&conn->taskqueuelock);if (conn->session->state ==ISCSI_STATE_LOGGING_OUT ) {fail_scsi_task (conn->task,DID_IMM_RETRY ); +spin_lock_bh (&conn->taskqueuelock);continue ; } rc =iscsi_prep_scsi_cmd_pdu (conn->task);if (rc) {if (rc == -ENOMEM || rc == -EACCES ) { +spin_lock_bh (&conn->taskqueuelock);list_add_tail (&conn->task->running, &conn->cmdqueue); conn->task =NULL ; +spin_unlock_bh (&conn->taskqueuelock); goto done; }else fail_scsi_task (conn->task,DID_ABORT ); +spin_lock_bh (&conn->taskqueuelock);continue ; } rc =iscsi_xmit_task (conn);
@@ -1558,6 +1575,7 @@ static int iscsi_data_xmit(struct iscsi_conn *conn)* we need to check the mgmt queue for nops that need to * be sent to aviod starvation */ +spin_lock_bh (&conn->taskqueuelock);if (!list_empty (&conn->mgmtqueue)) goto check_mgmt; }
@@ -1577,12 +1595,15 @@ static int iscsi_data_xmit(struct iscsi_conn *conn) conn->task = task;list_del_init (&conn->task->running); conn->task->state =ISCSI_TASK_RUNNING ; +spin_unlock_bh (&conn->taskqueuelock); rc =iscsi_xmit_task (conn);if (rc) goto done; +spin_lock_bh (&conn->taskqueuelock);if (!list_empty (&conn->mgmtqueue)) goto check_mgmt; } +spin_unlock_bh (&conn->taskqueuelock);spin_unlock_bh (&conn->session->frwd_lock);return -ENODATA ;
@@ -1738,7 +1759,9 @@ int iscsi_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *sc) goto prepd_reject; } }else { +spin_lock_bh (&conn->taskqueuelock);list_add_tail (&task->running, &conn->cmdqueue); +spin_unlock_bh (&conn->taskqueuelock);iscsi_conn_queue_work (conn); }
@@ -2897,6 +2920,7 @@ iscsi_conn_setup(struct iscsi_cls_session *cls_session, int dd_size,INIT_LIST_HEAD (&conn->mgmtqueue);INIT_LIST_HEAD (&conn->cmdqueue);INIT_LIST_HEAD (&conn->requeue); +spin_lock_init (&conn->taskqueuelock);INIT_WORK (&conn->xmitwork, iscsi_xmitworker);/* allocate login_task used for the login/text sequences */
drivers/scsi/lpfc/lpfc_init.c +1 -0
@@ -11447,6 +11447,7 @@ static struct pci_driver lpfc_driver = { .id_table = lpfc_id_table, .probe = lpfc_pci_probe_one, .remove = lpfc_pci_remove_one, + .shutdown = lpfc_pci_remove_one, .suspend = lpfc_pci_suspend_one, .resume = lpfc_pci_resume_one, .err_handler = &lpfc_err_handler,
drivers/scsi/mpt3sas/mpt3sas_base.h +0 -3
@@ -1443,9 +1443,6 @@ void mpt3sas_transport_update_links(struct MPT3SAS_ADAPTER *ioc, u64 sas_address, u16 handle, u8 phy_number, u8 link_rate);extern struct sas_function_template mpt3sas_transport_functions;extern struct scsi_transport_template *mpt3sas_transport_template; -extern int scsi_internal_device_block (struct scsi_device *sdev); -extern int scsi_internal_device_unblock (struct scsi_device *sdev, -enum scsi_device_state new_state);/* trigger data externs */ void mpt3sas_send_trigger_data_event (struct MPT3SAS_ADAPTER *ioc,struct SL_WH_TRIGGERS_EVENT_DATA_T *event_data);
drivers/scsi/mpt3sas/mpt3sas_scsih.c +2 -2
@@ -2840,7 +2840,7 @@ _scsih_internal_device_block(struct scsi_device *sdev, sas_device_priv_data->sas_target->handle); sas_device_priv_data->block =1 ; - r =scsi_internal_device_block (sdev); + r =scsi_internal_device_block (sdev, false);if (r == -EINVAL ) sdev_printk(KERN_WARNING, sdev, "device_block failed with return(%d) for handle(0x%04x)\n",
@@ -2876,7 +2876,7 @@ _scsih_internal_device_unblock(struct scsi_device *sdev,"performing a block followed by an unblock\n" , r, sas_device_priv_data->sas_target->handle); sas_device_priv_data->block =1 ; - r =scsi_internal_device_block (sdev); + r =scsi_internal_device_block (sdev, false);if (r) sdev_printk(KERN_WARNING, sdev, "retried device_block " "failed with return(%d) for handle(0x%04x)\n",
drivers/scsi/qla2xxx/qla_target.c +11 -3
@@ -5372,16 +5372,22 @@ qlt_send_busy(struct scsi_qla_host *vha,static int qlt_chk_qfull_thresh_hold (struct scsi_qla_host *vha, -struct atio_from_isp *atio) +struct atio_from_isp *atio,bool ha_locked) {struct qla_hw_data *ha = vha->hw;uint16_t status; +unsigned long flags;if (ha->tgt.num_pend_cmds <Q_FULL_THRESH_HOLD (ha))return 0 ; +if (!ha_locked) +spin_lock_irqsave (&ha->hardware_lock, flags); status = temp_sam_status;qlt_send_busy (vha, atio, status); +if (!ha_locked) +spin_unlock_irqrestore (&ha->hardware_lock, flags); +return 1 ; }
@@ -5426,7 +5432,7 @@ static void qlt_24xx_atio_pkt(struct scsi_qla_host *vha,if (likely (atio->u.isp24.fcp_cmnd.task_mgmt_flags ==0 )) { - rc =qlt_chk_qfull_thresh_hold (vha, atio); + rc =qlt_chk_qfull_thresh_hold (vha, atio, ha_locked);if (rc !=0 ) { tgt->atio_irq_cmd_count--;return ;
@@ -5549,7 +5555,7 @@ static void qlt_response_pkt(struct scsi_qla_host *vha, response_t *pkt)break ; } - rc =qlt_chk_qfull_thresh_hold (vha, atio); + rc =qlt_chk_qfull_thresh_hold (vha, atio, true);if (rc !=0 ) { tgt->irq_cmd_count--;return ;
@@ -6815,6 +6821,8 @@ qlt_handle_abts_recv_work(struct work_struct *work)spin_lock_irqsave (&ha->hardware_lock, flags);qlt_response_pkt_all_vps (vha, (response_t *)&op->atio);spin_unlock_irqrestore (&ha->hardware_lock, flags); + +kfree (op); }void
drivers/scsi/scsi_lib.c +10 -4
@@ -2880,6 +2880,8 @@ EXPORT_SYMBOL(scsi_target_resume);/** * scsi_internal_device_block - internal function to put a device temporarily into the SDEV_BLOCK state * @sdev: device to block +* @wait: Whether or not to wait until ongoing .queuecommand() / +* .queue_rq() calls have finished. * * Block request made by scsi lld's to temporarily stop all * scsi commands on the specified device. May sleep.
@@ -2897,7 +2899,7 @@ EXPORT_SYMBOL(scsi_target_resume);* remove the rport mutex lock and unlock calls from srp_queuecommand(). */ int -scsi_internal_device_block (struct scsi_device *sdev) +scsi_internal_device_block (struct scsi_device *sdev,bool wait) {struct request_queue *q = sdev->request_queue;unsigned long flags;
@@ -2917,12 +2919,16 @@ scsi_internal_device_block(struct scsi_device *sdev)* request queue. */ if (q->mq_ops) { -blk_mq_quiesce_queue (q); +if (wait) +blk_mq_quiesce_queue (q); +else +blk_mq_stop_hw_queues (q); }else {spin_lock_irqsave (q->queue_lock, flags);blk_stop_queue (q);spin_unlock_irqrestore (q->queue_lock, flags); -scsi_wait_for_queuecommand (sdev); +if (wait) +scsi_wait_for_queuecommand (sdev); }return 0 ;
@@ -2984,7 +2990,7 @@ EXPORT_SYMBOL_GPL(scsi_internal_device_unblock);static void device_block (struct scsi_device *sdev,void *data) { -scsi_internal_device_block (sdev); +scsi_internal_device_block (sdev, true); } static int
drivers/scsi/scsi_priv.h +0 -3
@@ -189,8 +189,5 @@ static inline void scsi_dh_remove_device(struct scsi_device *sdev) { }*/ #define SCSI_DEVICE_BLOCK_MAX_TIMEOUT 600/* units in seconds */ -extern int scsi_internal_device_block (struct scsi_device *sdev); -extern int scsi_internal_device_unblock (struct scsi_device *sdev, -enum scsi_device_state new_state);#endif /* _SCSI_PRIV_H */
drivers/target/target_core_pscsi.c +12 -35
106 lines not on this page · raw message
drivers/target/target_core_sbc.c +8 -2
@@ -1105,9 +1105,15 @@ sbc_parse_cdb(struct se_cmd *cmd, struct sbc_ops *ops)return ret;break ;case VERIFY : +case VERIFY_16 : size =0 ; - sectors =transport_get_sectors_10 (cdb); - cmd->t_task_lba =transport_lba_32 (cdb); +if (cdb[0 ] ==VERIFY ) { + sectors =transport_get_sectors_10 (cdb); + cmd->t_task_lba =transport_lba_32 (cdb); + }else { + sectors =transport_get_sectors_16 (cdb); + cmd->t_task_lba =transport_lba_64 (cdb); + } cmd->execute_cmd = sbc_emulate_noop; goto check_lba;case REZERO_UNIT :
fs/gfs2/incore.h +1 -1
@@ -207,7 +207,7 @@ struct lm_lockname {struct gfs2_sbd *ln_sbd;u64 ln_number;unsigned int ln_type; -}; +} __packed__aligned(sizeof(int)) ;#define lm_name_equal (name1, name2) \ (((name1)->ln_number == (name2)->ln_number) && \
fs/nfs/nfs4proc.c +4 -5
@@ -7541,11 +7541,11 @@ static void nfs4_exchange_id_release(void *data)struct nfs41_exchange_id_data *cdata = (struct nfs41_exchange_id_data *)data; -nfs_put_client (cdata->args.client);if (cdata->xprt) {xprt_put (cdata->xprt);rpc_clnt_xprt_switch_put (cdata->args.client->cl_rpcclient); } +nfs_put_client (cdata->args.client);kfree (cdata->res.impl_id);kfree (cdata->res.server_scope);kfree (cdata->res.server_owner);
@@ -7652,10 +7652,8 @@ static int _nfs4_proc_exchange_id(struct nfs_client *clp, struct rpc_cred *cred, task_setup_data.callback_data = calldata; task =rpc_run_task (&task_setup_data); -if (IS_ERR (task)) { - status =PTR_ERR (task); - goto out_impl_id; - } +if (IS_ERR (task)) +return PTR_ERR (task);if (!xprt) { status =rpc_wait_for_completion_task (task);
@@ -7683,6 +7681,7 @@ static int _nfs4_proc_exchange_id(struct nfs_client *clp, struct rpc_cred *cred,kfree (calldata->res.server_owner); out_calldata:kfree (calldata); +nfs_put_client (clp); goto out; }
include/linux/log2.h +2 -11
@@ -16,12 +16,6 @@#include <linux/bitops.h> /* -* deal with unrepresentable constant logarithms -*/ -extern __attribute__((const, noreturn)) -int ____ilog2_NaN (void ); - -/* * non-constant log of base 2 calculators * - the arch may override these in asm/bitops.h if they can be implemented * more efficiently than using fls() and fls64()
@@ -85,7 +79,7 @@ unsigned long __rounddown_pow_of_two(unsigned long n)#define ilog2 (n) \ ( \ __builtin_constant_p(n) ? ( \ - (n) < 1 ? ____ilog2_NaN() : \ + (n) < 2 ? 0 : \ (n) & (1ULL << 63) ? 63 : \ (n) & (1ULL << 62) ? 62 : \ (n) & (1ULL << 61) ? 61 : \
@@ -148,10 +142,7 @@ unsigned long __rounddown_pow_of_two(unsigned long n) (n) & (1ULL <<4 ) ?4 : \ (n) & (1ULL <<3 ) ?3 : \ (n) & (1ULL <<2 ) ?2 : \ - (n) & (1ULL <<1 ) ?1 : \ - (n) & (1ULL <<0 ) ?0 : \ -____ilog2_NaN () \ - ) : \ + 1 ) : \ (sizeof (n) <=4 ) ? \__ilog2_u32 (n) : \__ilog2_u64 (n) \
include/scsi/libiscsi.h +1 -0
@@ -196,6 +196,7 @@ struct iscsi_conn {struct iscsi_task *task;/* xmit task in progress */ /* xmit */ +spinlock_t taskqueuelock;/* protects the next three lists */ struct list_head mgmtqueue;/* mgmt (control) xmit queue */ struct list_head cmdqueue;/* data-path cmd queue */ struct list_head requeue;/* tasks needing another run */
include/scsi/scsi_device.h +4 -0
@@ -475,6 +475,10 @@ static inline int scsi_device_created(struct scsi_device *sdev) sdev->sdev_state ==SDEV_CREATED_BLOCK ; } +int scsi_internal_device_block (struct scsi_device *sdev,bool wait); +int scsi_internal_device_unblock (struct scsi_device *sdev, +enum scsi_device_state new_state); +/* accessor functions for the SCSI parameters */ static inline int scsi_device_sync (struct scsi_device *sdev) {
kernel/cgroup_pids.c +1 -1
@@ -229,7 +229,7 @@ static int pids_can_fork(struct task_struct *task)/* Only log the first time events_limit is incremented. */ if (atomic64_inc_return (&pids->events_limit) ==1 ) {pr_info ("cgroup: fork rejected by pids controller in " ); -pr_cont_cgroup_path (task_cgroup (current, pids_cgrp_id)); +pr_cont_cgroup_path (css->cgroup);pr_cont ("\n" ); }cgroup_file_notify (&pids->events_file);
kernel/events/core.c +14 -2
@@ -10374,6 +10374,17 @@ void perf_event_free_task(struct task_struct *task)continue ;mutex_lock (&ctx->mutex); +raw_spin_lock_irq (&ctx->lock); +/* +* Destroy the task <-> ctx relation and mark the context dead. +* +* This is important because even though the task hasn't been +* exposed yet the context has been (through child_list). +*/ +RCU_INIT_POINTER (task->perf_event_ctxp[ctxn],NULL ); +WRITE_ONCE (ctx->task,TASK_TOMBSTONE ); +put_task_struct (task);/* cannot be last */ +raw_spin_unlock_irq (&ctx->lock); again:list_for_each_entry_safe (event, tmp, &ctx->pinned_groups, group_entry)
@@ -10627,7 +10638,7 @@ static int perf_event_init_context(struct task_struct *child, int ctxn) ret =inherit_task_group (event, parent, parent_ctx, child, ctxn, &inherited_all);if (ret) -break ; + goto out_unlock; }/*
@@ -10643,7 +10654,7 @@ static int perf_event_init_context(struct task_struct *child, int ctxn) ret =inherit_task_group (event, parent, parent_ctx, child, ctxn, &inherited_all);if (ret) -break ; + goto out_unlock; }raw_spin_lock_irqsave (&parent_ctx->lock, flags);
@@ -10671,6 +10682,7 @@ static int perf_event_init_context(struct task_struct *child, int ctxn) }raw_spin_unlock_irqrestore (&parent_ctx->lock, flags); +out_unlock:mutex_unlock (&parent_ctx->mutex);perf_unpin_context (parent_ctx);
mm/percpu.c +4 -1
@@ -1011,8 +1011,11 @@ static void __percpu *pcpu_alloc(size_t size, size_t align, bool reserved,mutex_unlock (&pcpu_alloc_mutex); } -if (chunk != pcpu_reserved_chunk) +if (chunk != pcpu_reserved_chunk) { +spin_lock_irqsave (&pcpu_lock, flags); pcpu_nr_empty_pop_pages -= occ_pages; +spin_unlock_irqrestore (&pcpu_lock, flags); + }if (pcpu_nr_empty_pop_pages <PCPU_EMPTY_POP_PAGES_LOW )pcpu_schedule_balance_work ();
net/sunrpc/xprtrdma/verbs.c +2 -1
@@ -495,7 +495,8 @@ rpcrdma_ep_create(struct rpcrdma_ep *ep, struct rpcrdma_ia *ia,struct ib_cq *sendcq, *recvcq;int rc; - max_sge =min (ia->ri_device->attrs.max_sge,RPCRDMA_MAX_SEND_SGES ); + max_sge = min_t(unsigned int, ia->ri_device->attrs.max_sge, +RPCRDMA_MAX_SEND_SGES );if (max_sge <RPCRDMA_MIN_SEND_SGES ) {pr_warn ("rpcrdma: HCA provides only %d send SGEs\n" , max_sge);return -ENOMEM ;
tools/include/linux/log2.h +2 -11
@@ -13,12 +13,6 @@#define _TOOLS_LINUX_LOG2_H/* -* deal with unrepresentable constant logarithms -*/ -extern __attribute__((const, noreturn)) -int ____ilog2_NaN (void ); - -/* * non-constant log of base 2 calculators * - the arch may override these in asm/bitops.h if they can be implemented * more efficiently than using fls() and fls64()
@@ -78,7 +72,7 @@ unsigned long __rounddown_pow_of_two(unsigned long n)#define ilog2 (n) \ ( \ __builtin_constant_p(n) ? ( \ - (n) < 1 ? ____ilog2_NaN() : \ + (n) < 2 ? 0 : \ (n) & (1ULL << 63) ? 63 : \ (n) & (1ULL << 62) ? 62 : \ (n) & (1ULL << 61) ? 61 : \
@@ -141,10 +135,7 @@ unsigned long __rounddown_pow_of_two(unsigned long n) (n) & (1ULL <<4 ) ?4 : \ (n) & (1ULL <<3 ) ?3 : \ (n) & (1ULL <<2 ) ?2 : \ - (n) & (1ULL <<1 ) ?1 : \ - (n) & (1ULL <<0 ) ?0 : \ -____ilog2_NaN () \ - ) : \ + 1 ) : \ (sizeof (n) <=4 ) ? \__ilog2_u32 (n) : \__ilog2_u64 (n) \
Greg KH
maintainerI'm announcing the release of the 4.10.6 kernel.
All users of the 4.10 kernel series must upgrade.
The updated 4.10.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.10.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 - arch/parisc/include/asm/cacheflush.h | 23 +---------------- arch/parisc/kernel/cache.c | 22 ++++++++++++++++ arch/parisc/kernel/module.c | 8 +++++ arch/parisc/kernel/process.c | 2 + arch/powerpc/boot/zImage.lds.S | 1 drivers/char/hw_random/omap-rng.c | 16 ++++++++++- drivers/cpufreq/cpufreq.c | 8 +++-- drivers/gpu/drm/amd/amdgpu/si_dpm.c | 6 ++++ drivers/isdn/gigaset/bas-gigaset.c | 3 ++ drivers/md/raid10.c | 18 +++++++++++++ drivers/md/raid5.c | 3 +- drivers/scsi/libiscsi.c | 26 ++++++++++++++++++- drivers/scsi/lpfc/lpfc_init.c | 1 drivers/scsi/mpt3sas/mpt3sas_base.h | 3 -- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 4 +- drivers/scsi/qla2xxx/qla_target.c | 14 ++++++++-- drivers/scsi/scsi_lib.c | 14 +++++++--- drivers/scsi/scsi_priv.h | 3 -- drivers/target/target_core_pscsi.c | 47 ++++++++--------------------------- drivers/target/target_core_sbc.c | 10 +++++-- fs/gfs2/incore.h | 2 - fs/nfs/nfs4proc.c | 9 ++---- include/linux/log2.h | 13 +-------- include/scsi/libiscsi.h | 1 include/scsi/scsi_device.h | 4 ++ kernel/cgroup_pids.c | 2 - kernel/events/core.c | 16 ++++++++++- mm/percpu.c | 5 ++- net/sunrpc/xprtrdma/verbs.c | 3 +- tools/include/linux/log2.h | 13 +-------- 31 files changed, 188 insertions(+), 114 deletions(-)
Alex Deucher (1):
drm/amdgpu/si: add dpm quirk for Oland
Andreas Gruenbacher (1):
gfs2: Avoid alignment hole in struct lm_lockname
Anton Blanchard (1):
scsi: lpfc: Add shutdown method for kexec
Bart Van Assche (1):
scsi: mpt3sas: Avoid sleeping in interrupt context
Chris Leech (1):
scsi: libiscsi: add lock around task lists to fix list corruption regression
Chuck Lever (1):
xprtrdma: Squelch kbuild sparse complaint
Greg Kroah-Hartman (1):
Linux 4.10.6
Helge Deller (1):
parisc: Fix system shutdown halt
Johan Hovold (1):
isdn/gigaset: fix NULL-deref at probe
John David Anglin (1):
parisc: Optimize flush_kernel_vmap_range and invalidate_kernel_vmap_range
Linus Torvalds (1):
give up on gcc ilog2() constant optimizations
Max Lohrmann (1):
target: Fix VERIFY_16 handling in sbc_parse_cdb
Michael Ellerman (1):
powerpc/boot: Fix zImage TOC alignment
Mikulas Patocka (1):
parisc: support R_PARISC_SECREL32 relocation in modules
Nicholas Bellinger (1):
target/pscsi: Fix TYPE_TAPE + TYPE_MEDIMUM_CHANGER export
Olga Kornievskaia (1):
NFS prevent double free in async nfs4_exchange_id
Peter Zijlstra (2):
perf/core: Fix use-after-free in perf_release() perf/core: Fix event inheritance on fork()
Quinn Tran (2):
qla2xxx: Fix memory leak for abts processing
qla2xxx: Fix request queue corruption.
Rafael J. Wysocki (1):
cpufreq: Fix and clean up show_cpuinfo_cur_freq()
Shaohua Li (1):
md/raid1/10: fix potential deadlock
Song Liu (1):
md/r5cache: fix set_syndrome_sources() for data in cache
Tahsin Erdogan (1):
percpu: acquire pcpu_lock when updating pcpu_nr_empty_pop_pages
Tejun Heo (1):
cgroup/pids: remove spurious suspicious RCU usage warning
Thomas Petazzoni (3):
hwrng: omap - write registers after enabling the clock
hwrng: omap - use devm_clk_get() instead of of_clk_get()
hwrng: omap - Do not access INTMASK_REG on EIP76