Linux 4.9.18
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 9 -SUBLEVEL = 17 +SUBLEVEL = 18 EXTRAVERSION = NAME = Roaring Lionus
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/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/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
@@ -3506,6 +3506,12 @@ static void si_apply_state_adjust_rules(struct amdgpu_device *adev, max_sclk =75000 ; max_mclk =80000 ; } + }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/gpu/drm/vc4/vc4_drv.c +6 -3
@@ -61,21 +61,24 @@ static int vc4_get_param_ioctl(struct drm_device *dev, void *data,if (ret <0 )return ret; args->value =V3D_READ (V3D_IDENT0 ); -pm_runtime_put (&vc4->v3d->pdev->dev); +pm_runtime_mark_last_busy (&vc4->v3d->pdev->dev); +pm_runtime_put_autosuspend (&vc4->v3d->pdev->dev);break ;case DRM_VC4_PARAM_V3D_IDENT1 : ret =pm_runtime_get_sync (&vc4->v3d->pdev->dev);if (ret <0 )return ret; args->value =V3D_READ (V3D_IDENT1 ); -pm_runtime_put (&vc4->v3d->pdev->dev); +pm_runtime_mark_last_busy (&vc4->v3d->pdev->dev); +pm_runtime_put_autosuspend (&vc4->v3d->pdev->dev);break ;case DRM_VC4_PARAM_V3D_IDENT2 : ret =pm_runtime_get_sync (&vc4->v3d->pdev->dev);if (ret <0 )return ret; args->value =V3D_READ (V3D_IDENT2 ); -pm_runtime_put (&vc4->v3d->pdev->dev); +pm_runtime_mark_last_busy (&vc4->v3d->pdev->dev); +pm_runtime_put_autosuspend (&vc4->v3d->pdev->dev);break ;case DRM_VC4_PARAM_SUPPORTS_BRANCHES : args->value = true;
drivers/gpu/drm/vc4/vc4_gem.c +4 -2
@@ -711,8 +711,10 @@ vc4_complete_exec(struct drm_device *dev, struct vc4_exec_info *exec) }mutex_lock (&vc4->power_lock); -if (--vc4->power_refcount ==0 ) -pm_runtime_put (&vc4->v3d->pdev->dev); +if (--vc4->power_refcount ==0 ) { +pm_runtime_mark_last_busy (&vc4->v3d->pdev->dev); +pm_runtime_put_autosuspend (&vc4->v3d->pdev->dev); + }mutex_unlock (&vc4->power_lock);kfree (exec);
drivers/gpu/drm/vc4/vc4_v3d.c +2 -0
@@ -222,6 +222,8 @@ static int vc4_v3d_bind(struct device *dev, struct device *master, void *data)return ret; } +pm_runtime_use_autosuspend (dev); +pm_runtime_set_autosuspend_delay (dev,40 );/* a little over 2 frames. */ pm_runtime_enable (dev);return 0 ;
drivers/gpu/drm/vc4/vc4_validate_shaders.c +8 -11
@@ -608,9 +608,7 @@ static bool vc4_validate_branches(struct vc4_shader_validation_state *validation_state) {uint32_t max_branch_target =0 ; -bool found_shader_end = false;int ip; -int shader_end_ip =0 ;int last_branch =-2 ;for (ip =0 ; ip < validation_state->max_ip; ip++) {
@@ -621,8 +619,13 @@ vc4_validate_branches(struct vc4_shader_validation_state *validation_state)uint32_t branch_target_ip;if (sig ==QPU_SIG_PROG_END ) { - shader_end_ip = ip; - found_shader_end = true; +/* There are two delay slots after program end is +* signaled that are still executed, then we're +* finished. validation_state->max_ip is the +* instruction after the last valid instruction in the +* program. +*/ + validation_state->max_ip = ip +3 ;continue ; }
@@ -676,15 +679,9 @@ vc4_validate_branches(struct vc4_shader_validation_state *validation_state) }set_bit (after_delay_ip, validation_state->branch_targets); max_branch_target =max (max_branch_target, after_delay_ip); - -/* There are two delay slots after program end is signaled -* that are still executed, then we're finished. -*/ -if (found_shader_end && ip == shader_end_ip +2 ) -break ; } -if (max_branch_target > shader_end_ip) { +if (max_branch_target > validation_state->max_ip -3 ) {DRM_ERROR ("Branch landed after QPU_SIG_PROG_END" );return false; }
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
@@ -1470,7 +1470,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/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
@@ -11393,6 +11393,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/qla2xxx/qla_target.c +11 -3
@@ -5375,16 +5375,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 ; }
@@ -5429,7 +5435,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 ;
@@ -5552,7 +5558,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 ;
@@ -6794,6 +6800,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/target/target_core_pscsi.c +12 -35
106 lines not on this page · raw message
drivers/target/target_core_sbc.c +8 -2
@@ -1104,9 +1104,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/ext4/super.c +1 -1
@@ -3830,7 +3830,7 @@ static int ext4_fill_super(struct super_block *sb, void *data, int silent) db_count = (sbi->s_groups_count +EXT4_DESC_PER_BLOCK (sb) -1 ) /EXT4_DESC_PER_BLOCK (sb);if (ext4_has_feature_meta_bg (sb)) { -if (le32_to_cpu (es->s_first_meta_bg) >= db_count) { +if (le32_to_cpu (es->s_first_meta_bg) > db_count) { ext4_msg(sb, KERN_WARNING, "first meta block group too large: %u " "(group descriptor block count %u)",
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
@@ -7426,11 +7426,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);
@@ -7537,10 +7537,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);
@@ -7568,6 +7566,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 */
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
@@ -10333,6 +10333,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)
@@ -10586,7 +10597,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; }/*
@@ -10602,7 +10613,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);
@@ -10630,6 +10641,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
@@ -1010,8 +1010,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
@@ -486,7 +486,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.9.18 kernel.
All users of the 4.9 kernel series must upgrade.
The updated 4.9.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.9.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/process.c | 2 + arch/powerpc/boot/zImage.lds.S | 1 drivers/cpufreq/cpufreq.c | 8 +++- drivers/gpu/drm/amd/amdgpu/si_dpm.c | 6 +++ drivers/gpu/drm/vc4/vc4_drv.c | 9 +++-- drivers/gpu/drm/vc4/vc4_gem.c | 6 ++- drivers/gpu/drm/vc4/vc4_v3d.c | 2 + drivers/gpu/drm/vc4/vc4_validate_shaders.c | 19 ++++------- drivers/isdn/gigaset/bas-gigaset.c | 3 + drivers/md/raid10.c | 18 +++++++++++ drivers/scsi/libiscsi.c | 26 +++++++++++++++- drivers/scsi/lpfc/lpfc_init.c | 1 drivers/scsi/qla2xxx/qla_target.c | 14 ++++++-- drivers/target/target_core_pscsi.c | 47 +++++++---------------------- drivers/target/target_core_sbc.c | 10 ++++-- fs/ext4/super.c | 2 - fs/gfs2/incore.h | 2 - fs/nfs/nfs4proc.c | 9 ++--- include/linux/log2.h | 13 +------- include/scsi/libiscsi.h | 1 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 +------- 28 files changed, 169 insertions(+), 116 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
Chris Leech (1):
scsi: libiscsi: add lock around task lists to fix list corruption regression
Chuck Lever (1):
xprtrdma: Squelch kbuild sparse complaint
Eric Anholt (2):
drm/vc4: Fix termination of the initial scan for branch targets. drm/vc4: Use runtime autosuspend to avoid thrashing V3D power state.
Greg Kroah-Hartman (1):
Linux 4.9.18
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
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
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
Theodore Ts'o (1):
ext4: fix fencepost in s_first_meta_bg validation