Linux 5.10.184
Greg Kroah-Hartman
maintainerI'm announcing the release of the 5.10.184 kernel.
All users of the 5.10 kernel series must upgrade.
The updated 5.10.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.10.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/mips/include/asm/atomic.h | 2 arch/riscv/Kconfig | 1 block/blk-iocost.c | 10 drivers/ata/ahci.h | 245 - drivers/block/Kconfig | 9 drivers/block/Makefile | 2 drivers/block/rbd.c | 62 drivers/block/sx8.c | 1586 ---------- drivers/bluetooth/hci_qca.c | 6 drivers/gpu/drm/amd/amdgpu/vi.c | 11 drivers/gpu/drm/drm_atomic_uapi.c | 14 drivers/i2c/busses/i2c-sprd.c | 8 drivers/infiniband/hw/i40iw/i40iw.h | 5 drivers/input/joystick/xpad.c | 1 drivers/input/mouse/elantech.c | 9 drivers/misc/eeprom/Kconfig | 1 drivers/net/dsa/lan9303-core.c | 4 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 28 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 2 drivers/net/ethernet/intel/i40e/i40e_alloc.h | 17 drivers/net/ethernet/intel/ice/ice_fltr.c | 2 drivers/net/ethernet/qlogic/qed/qed_l2.c | 2 drivers/net/ethernet/qlogic/qede/qede.h | 4 drivers/net/ethernet/qlogic/qede/qede_ethtool.c | 24 drivers/net/ethernet/qlogic/qede/qede_main.c | 34 drivers/net/ethernet/sfc/ef100_tx.c | 3 drivers/net/wireless/mediatek/mt76/mt7615/mac.c | 3 drivers/pinctrl/meson/pinctrl-meson-axg.c | 1 drivers/s390/block/dasd_ioctl.c | 4 drivers/spi/spi-qup.c | 37 drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 6 drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 5 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 24 drivers/tee/amdtee/amdtee_if.h | 10 drivers/tee/amdtee/call.c | 30 drivers/usb/core/buffer.c | 41 drivers/usb/core/devio.c | 20 drivers/vhost/vhost.c | 18 drivers/vhost/vhost.h | 8 fs/afs/dir.c | 3 fs/btrfs/relocation.c | 14 fs/ceph/caps.c | 6 fs/ceph/snap.c | 4 fs/ext4/super.c | 6 fs/ext4/xattr.c | 6 fs/f2fs/sysfs.c | 4 fs/xfs/xfs_buf_item_recover.c | 10 include/linux/netdevice.h | 7 include/linux/usb/hcd.h | 5 include/net/bond_alb.h | 4 include/net/neighbour.h | 2 include/net/pkt_sched.h | 2 include/net/rpl.h | 3 include/net/sock.h | 18 kernel/trace/bpf_trace.c | 12 lib/cpu_rmap.c | 2 net/batman-adv/distributed-arp-table.c | 2 net/bluetooth/hci_core.c | 8 net/bluetooth/l2cap_core.c | 13 net/can/j1939/main.c | 24 net/can/j1939/socket.c | 5 net/core/dev.c | 6 net/ipv4/sysctl_net_ipv4.c | 2 net/ipv6/exthdrs.c | 29 net/netfilter/ipset/ip_set_core.c | 8 net/netfilter/nf_conntrack_core.c | 3 net/sched/cls_api.c | 3 net/sched/sch_fq_pie.c | 8 net/smc/smc_llc.c | 4 scripts/gcc-plugins/gcc-common.h | 9 sound/pci/hda/patch_realtek.c | 2 sound/soc/codecs/wsa881x.c | 1 73 files changed, 604 insertions(+), 1932 deletions(-)
Ai Chao (1):
ALSA: hda/realtek: Add a quirk for HP Slim Desktop S01
Alexander Sverdlin (1):
net: dsa: lan9303: allow vid != 0 in port_fdb_{add|del} methodsArnd Bergmann (2):
ata: ahci: fix enum constants for gcc-13
blk-iocost: avoid 64-bit division in ioc_timer_fn
Ben Hutchings (1):
lib: cpu_rmap: Fix potential use-after-free in irq_cpu_rmap_release()
Chia-I Wu (1):
drm/amdgpu: fix xclk freq on CHIP_STONEY
Christoph Hellwig (1):
remove the sx8 block driver
Darrick J. Wong (1):
xfs: verify buffer contents when we skip log replay
David Howells (1):
afs: Fix setting of mtime when creating a file/dir/symlink
Dmitry Torokhov (1):
Input: psmouse - fix OOB access in Elantech protocol
Eric Dumazet (5):
net/sched: fq_pie: ensure reasonable TCA_FQ_PIE_QUANTUM values
rfs: annotate lockless accesses to sk->sk_rxhash
rfs: annotate lockless accesses to RFS sock flow table
net: sched: move rtm_tca_policy declaration to include file
tcp: fix tcp_min_tso_segs sysctl
Fedor Pchelkin (2):
can: j1939: change j1939_netdev_lock type to mutex
can: j1939: avoid possible use-after-free when j1939_can_rx_register fails
Greg Kroah-Hartman (6):
i40iw: fix build warning in i40iw_manage_apbvt()
i40e: fix build warnings in i40e_alloc.h
i40e: fix build warning in ice_fltr_add_mac_to_list()
staging: vc04_services: fix gcc-13 build warning
Revert "staging: rtl8192e: Replace macro RTL_PCI_DEVICE with PCI_DEVICE" Linux 5.10.184
Hangyu Hua (1):
net: sched: fix possible refcount leak in tc_chain_tmplt_add()
Ilya Dryomov (2):
rbd: move RBD_OBJ_FLAG_COPYUP_ENABLED flag setting
rbd: get snapshot context after exclusive lock is ensured to be held
Ismael Ferreras Morezuelas (1):
Input: xpad - delete a Razer DeathAdder mouse VID/PID entry
Jan Höppner (1):
s390/dasd: Use correct lock while counting channel queue length
Jiri Olsa (1):
bpf: Add extra path pointer check to d_path helper
Jiri Slaby (SUSE) (3):
sfc (gcc13): synchronize ef100_enqueue_skb()'s return type bonding (gcc13): synchronize bond_{a,t}lb_xmit() types block/blk-iocost (gcc13): keep large values in a new enum
Johan Hovold (1):
Bluetooth: hci_qca: fix debugfs registration
Josef Bacik (1):
btrfs: check return value of btrfs_commit_transaction in relocation
Kees Cook (1):
gcc-plugins: Reorganize gimple includes for GCC 13
Kuniyuki Iwashima (2):
netfilter: ipset: Add schedule point in call_ad().
ipv6: rpl: Fix Route of Death.
Lorenzo Bianconi (1):
wifi: mt76: mt7615: fix possible race in mt7615_mac_sta_poll
Luiz Augusto von Dentz (1):
Bluetooth: Fix use-after-free in hci_remove_ltk/hci_remove_irk
Manish Chopra (1):
qed/qede: Fix scheduling while atomic
Martin Hundebøll (1):
pinctrl: meson-axg: add missing GPIOA_18 gpio group
Oleksij Rempel (1):
can: j1939: j1939_sk_send_loop_abort(): improved error queue handling in J1939 Socket
Qilin Tan (1):
f2fs: fix iostat lock protection
Qingfang DENG (1):
neighbour: fix unaligned access to pneigh_entry
Randy Dunlap (1):
eeprom: at24: also select REGMAP
RenHai (1):
ALSA: hda/realtek: Add Lenovo P3 Tower platform
Rijo Thomas (1):
tee: amdtee: Add return_origin to 'struct tee_cmd_load_ta'
Ruan Jinjie (1):
riscv: fix kprobe __user string arg print fault issue
Rui Wang (1):
MIPS: locking/atomic: Fix atomic{_64,}_sub_if_positive
Ruihan Li (2):
usb: usbfs: Enforce page requirements for mmap
usb: usbfs: Use consistent mmap functions
Shannon Nelson (1):
vhost: support PACKED when setting-getting vring_base
Somnath Kotur (2):
bnxt_en: Query default VLAN before VNIC setup on a VF
bnxt_en: Implement .set_port / .unset_port UDP tunnel callbacks
Sreekanth Reddy (1):
bnxt_en: Don't issue AP reset during ethtool's reset operation
Srinivas Kandagatla (1):
ASoC: codecs: wsa881x: do not set can_multi_write flag
Stefan Wahren (1):
staging: vchiq_core: drop vchiq_status from vchiq_initialise
Stephan Gerhold (1):
spi: qup: Request DMA before enabling clocks
Sungwoo Kim (1):
Bluetooth: L2CAP: Add missing checks for invalid DCID
Theodore Ts'o (2):
Revert "ext4: don't clear SB_RDONLY when remounting r/w until quota is re-enabled"
ext4: only check dquot_initialize_needed() when debugging
Tijs Van Buggenhout (1):
netfilter: conntrack: fix NULL pointer dereference in nf_confirm_cthelper
Uwe Kleine-König (1):
i2c: sprd: Delete i2c adapter in .remove's error path
Ville Syrjälä (1):
drm/atomic: Don't pollute crtc_state->mode_blob with error pointers
Vladislav Efanov (1):
batman-adv: Broken sync while rescheduling delayed work
Wen Gu (1):
net/smc: Avoid to access invalid RMBs' MRs in SMCRv1 ADD LINK CONT
Xiubo Li (1):
ceph: fix use-after-free bug for inodes when flushing capsnaps
Ying Hsu (1):
Bluetooth: Fix l2cap_disconnect_req deadlock
Zixuan Fu (1):
btrfs: unset reloc control if transaction commit fails in prepare_to_relocate()
Greg Kroah-Hartman
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 10 -SUBLEVEL = 183 +SUBLEVEL = 184 EXTRAVERSION = NAME = Dare mighty things
arch/mips/include/asm/atomic.h +1 -1
@@ -203,7 +203,7 @@ ATOMIC_OPS(atomic64, xor, s64, ^=, xor, lld, scd)* The function returns the old value of @v minus @i. */ #define ATOMIC_SIP_OP (pfx, type, op, ll, sc) \ -static __inline__ int pfx##_sub_if_positive(type i, pfx##_t * v) \ +static __inline__ type pfx##_sub_if_positive(type i, pfx##_t * v) \ { \ type temp, result; \ \
arch/riscv/Kconfig +1 -0
@@ -22,6 +22,7 @@ config RISCV select ARCH_HAS_GIGANTIC_PAGE select ARCH_HAS_KCOV select ARCH_HAS_MMIOWB + select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE select ARCH_HAS_PTE_SPECIAL select ARCH_HAS_SET_DIRECT_MAP select ARCH_HAS_SET_MEMORY
block/blk-iocost.c +7 -3
@@ -232,7 +232,9 @@ enum {/* 1/64k is granular enough and can easily be handled w/ u32 */ WEIGHT_ONE = 1 << 16, +}; +enum {/* * As vtime is used to calculate the cost of each IO, it needs to * be fairly high precision. For example, it should be able to
@@ -256,6 +258,11 @@ enum {VRATE_MIN =VTIME_PER_USEC *VRATE_MIN_PPM /MILLION ,VRATE_CLAMP_ADJ_PCT =4 , +/* switch iff the conditions are met for longer than this */ + AUTOP_CYCLE_NSEC = 10LLU * NSEC_PER_SEC, +}; + +enum {/* if IOs end up waiting for requests, issue less */ RQ_WAIT_BUSY_PCT = 5,
@@ -294,9 +301,6 @@ enum {/* don't let cmds which take a very long time pin lagging for too long */ MAX_LAGGING_PERIODS = 10, -/* switch iff the conditions are met for longer than this */ - AUTOP_CYCLE_NSEC = 10LLU * NSEC_PER_SEC, -/* * Count IO size in 4k pages. The 12bit shift helps keeping * size-proportional components of cost calculation in closer
drivers/ata/ahci.h +123 -122
310 lines not on this page · raw message
drivers/block/Kconfig +0 -9
@@ -293,15 +293,6 @@ config BLK_DEV_SKD Use device /dev/skd$N amd /dev/skd$Np$M. -config BLK_DEV_SX8 - tristate "Promise SATA SX8 support" - depends on PCI - help - Saying Y or M here will enable support for the - Promise SATA SX8 controllers. - - Use devices /dev/sx8/$N and /dev/sx8/$Np$M. - config BLK_DEV_RAM tristate "RAM block device support" help
drivers/block/Makefile +0 -2
@@ -29,8 +29,6 @@ obj-$(CONFIG_BLK_DEV_NBD) += nbd.o obj-$(CONFIG_BLK_DEV_CRYPTOLOOP) += cryptoloop.o obj-$(CONFIG_VIRTIO_BLK) += virtio_blk.o -obj-$(CONFIG_BLK_DEV_SX8) += sx8.o - obj-$(CONFIG_XEN_BLKDEV_FRONTEND) += xen-blkfront.o obj-$(CONFIG_XEN_BLKDEV_BACKEND) += xen-blkback/ obj-$(CONFIG_BLK_DEV_DRBD) += drbd/
drivers/block/rbd.c +44 -18
133 lines not on this page · raw message
drivers/block/sx8.c deleted +0 -1586
1,586 lines not on this page · raw message
drivers/bluetooth/hci_qca.c +5 -1
@@ -78,7 +78,8 @@ enum qca_flags {QCA_HW_ERROR_EVENT ,QCA_SSR_TRIGGERED ,QCA_BT_OFF , -QCA_ROM_FW +QCA_ROM_FW , + QCA_DEBUGFS_CREATED, }; enum qca_capabilities {
@@ -633,6 +634,9 @@ static void qca_debugfs_init(struct hci_dev *hdev)if (!hdev->debugfs)return ; +if (test_and_set_bit (QCA_DEBUGFS_CREATED , &qca->flags)) +return ; + ibs_dir =debugfs_create_dir ("ibs" , hdev->debugfs);/* read only */
drivers/gpu/drm/amd/amdgpu/vi.c +9 -2
@@ -329,8 +329,15 @@ static u32 vi_get_xclk(struct amdgpu_device *adev)u32 reference_clock = adev->clock.spll.reference_freq;u32 tmp; -if (adev->flags &AMD_IS_APU ) -return reference_clock; +if (adev->flags &AMD_IS_APU ) { +switch (adev->asic_type) { +case CHIP_STONEY : +/* vbios says 48Mhz, but the actual freq is 100Mhz */ +return 10000 ; +default : +return reference_clock; + } + } tmp =RREG32_SMC (ixCG_CLKPIN_CNTL_2);if (REG_GET_FIELD (tmp,CG_CLKPIN_CNTL_2 ,MUX_TCLK_TO_XCLK ))
drivers/gpu/drm/drm_atomic_uapi.c +8 -6
@@ -75,15 +75,17 @@ int drm_atomic_set_mode_for_crtc(struct drm_crtc_state *state, state->mode_blob =NULL ;if (mode) { +struct drm_property_blob *blob; +drm_mode_convert_to_umode (&umode, mode); - state->mode_blob = -drm_property_create_blob (state->crtc->dev, -sizeof (umode), - &umode); -if (IS_ERR (state->mode_blob)) -return PTR_ERR (state->mode_blob); + blob =drm_property_create_blob (crtc->dev, +sizeof (umode), &umode); +if (IS_ERR (blob)) +return PTR_ERR (blob);drm_mode_copy (&state->mode, mode); + + state->mode_blob = blob; state->enable = true;DRM_DEBUG_ATOMIC ("Set [MODE:%s] for [CRTC:%d:%s] state %p\n" , mode->name, crtc->base.id, crtc->name, state);
drivers/i2c/busses/i2c-sprd.c +5 -3
@@ -576,12 +576,14 @@ static int sprd_i2c_remove(struct platform_device *pdev)struct sprd_i2c *i2c_dev =platform_get_drvdata (pdev);int ret; - ret =pm_runtime_resume_and_get (i2c_dev->dev); + ret =pm_runtime_get_sync (i2c_dev->dev);if (ret <0 ) -return ret; +dev_err (&pdev->dev,"Failed to resume device (%pe)\n" ,ERR_PTR (ret));i2c_del_adapter (&i2c_dev->adap); -clk_disable_unprepare (i2c_dev->clk); + +if (ret >=0 ) +clk_disable_unprepare (i2c_dev->clk);pm_runtime_put_noidle (i2c_dev->dev);pm_runtime_disable (i2c_dev->dev);
drivers/infiniband/hw/i40iw/i40iw.h +2 -3
@@ -422,9 +422,8 @@ void i40iw_manage_arp_cache(struct i40iw_device *iwdev,bool ipv4, u32 action); -int i40iw_manage_apbvt (struct i40iw_device *iwdev, -u16 accel_local_port, -bool add_port); +enum i40iw_status_code i40iw_manage_apbvt (struct i40iw_device *iwdev, +u16 accel_local_port,bool add_port);struct i40iw_cqp_request *i40iw_get_cqp_request (struct i40iw_cqp *cqp,bool wait);void i40iw_free_cqp_request (struct i40iw_cqp *cqp,struct i40iw_cqp_request *cqp_request);
drivers/input/joystick/xpad.c +0 -1
@@ -262,7 +262,6 @@ static const struct xpad_device { { 0x1430, 0xf801, "RedOctane Controller", 0, XTYPE_XBOX360 }, { 0x146b, 0x0601, "BigBen Interactive XBOX 360 Controller", 0, XTYPE_XBOX360 }, { 0x146b, 0x0604, "Bigben Interactive DAIJA Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOX360 }, - { 0x1532, 0x0037, "Razer Sabertooth", 0, XTYPE_XBOX360 }, { 0x1532, 0x0a00, "Razer Atrox Arcade Stick", MAP_TRIGGERS_TO_BUTTONS, XTYPE_XBOXONE }, { 0x1532, 0x0a03, "Razer Wildcat", 0, XTYPE_XBOXONE }, { 0x15e4, 0x3f00, "Power A Mini Pro Elite", 0, XTYPE_XBOX360 },
drivers/input/mouse/elantech.c +5 -4
@@ -674,10 +674,11 @@ static void process_packet_head_v4(struct psmouse *psmouse)struct input_dev *dev = psmouse->dev;struct elantech_data *etd = psmouse->private;unsigned char *packet = psmouse->packet; -int id = ((packet[3 ] &0xe0 ) >>5 ) -1 ; +int id;int pres, traces; -if (id <0 ) + id = ((packet[3 ] &0xe0 ) >>5 ) -1 ; +if (id <0 || id >=ETP_MAX_FINGERS )return ; etd->mt[id].x = ((packet[1 ] &0x0f ) <<8 ) | packet[2 ];
@@ -707,7 +708,7 @@ static void process_packet_motion_v4(struct psmouse *psmouse)int id, sid; id = ((packet[0 ] &0xe0 ) >>5 ) -1 ; -if (id <0 ) +if (id <0 || id >=ETP_MAX_FINGERS )return ; sid = ((packet[3 ] &0xe0 ) >>5 ) -1 ;
@@ -728,7 +729,7 @@ static void process_packet_motion_v4(struct psmouse *psmouse)input_report_abs (dev,ABS_MT_POSITION_X , etd->mt[id].x);input_report_abs (dev,ABS_MT_POSITION_Y , etd->mt[id].y); -if (sid >=0 ) { +if (sid >=0 && sid <ETP_MAX_FINGERS ) { etd->mt[sid].x += delta_x2 * weight; etd->mt[sid].y -= delta_y2 * weight;input_mt_slot (dev, sid);
drivers/misc/eeprom/Kconfig +1 -0
@@ -6,6 +6,7 @@ config EEPROM_AT24 depends on I2C && SYSFS select NVMEM select NVMEM_SYSFS + select REGMAP select REGMAP_I2C help Enable this driver to get read/write support to most I2C EEPROMs
drivers/net/dsa/lan9303-core.c +0 -4
@@ -1187,8 +1187,6 @@ static int lan9303_port_fdb_add(struct dsa_switch *ds, int port,struct lan9303 *chip = ds->priv;dev_dbg (chip->dev,"%s(%d, %pM, %d)\n" , __func__, port, addr, vid); -if (vid) -return -EOPNOTSUPP ;return lan9303_alr_add_port (chip, addr, port, false); }
@@ -1200,8 +1198,6 @@ static int lan9303_port_fdb_del(struct dsa_switch *ds, int port,struct lan9303 *chip = ds->priv;dev_dbg (chip->dev,"%s(%d, %pM, %d)\n" , __func__, port, addr, vid); -if (vid) -return -EOPNOTSUPP ;lan9303_alr_del_port (chip, addr, port);return 0 ;
drivers/net/ethernet/broadcom/bnxt/bnxt.c +21 -7
@@ -8337,6 +8337,9 @@ static int bnxt_init_chip(struct bnxt *bp, bool irq_re_init) goto err_out; } +if (BNXT_VF (bp)) +bnxt_hwrm_func_qcfg (bp); + rc =bnxt_setup_vnic (bp,0 );if (rc) goto err_out;
@@ -12101,26 +12104,37 @@ static void bnxt_cfg_ntp_filters(struct bnxt *bp)#endif /* CONFIG_RFS_ACCEL */ -static int bnxt_udp_tunnel_sync (struct net_device *netdev,unsigned int table) +static int bnxt_udp_tunnel_set_port (struct net_device *netdev,unsigned int table, +unsigned int entry,struct udp_tunnel_info *ti) {struct bnxt *bp =netdev_priv (netdev); -struct udp_tunnel_info ti;unsigned int cmd; -udp_tunnel_nic_get_port (netdev, table,0 , &ti); -if (ti.type ==UDP_TUNNEL_TYPE_VXLAN ) +if (ti->type ==UDP_TUNNEL_TYPE_VXLAN ) cmd =TUNNEL_DST_PORT_FREE_REQ_TUNNEL_TYPE_VXLAN ;else cmd =TUNNEL_DST_PORT_FREE_REQ_TUNNEL_TYPE_GENEVE ; -if (ti.port) -return bnxt_hwrm_tunnel_dst_port_alloc (bp, ti.port, cmd); +return bnxt_hwrm_tunnel_dst_port_alloc (bp, ti->port, cmd); +} + +static int bnxt_udp_tunnel_unset_port (struct net_device *netdev,unsigned int table, +unsigned int entry,struct udp_tunnel_info *ti) +{ +struct bnxt *bp =netdev_priv (netdev); +unsigned int cmd; + +if (ti->type ==UDP_TUNNEL_TYPE_VXLAN ) + cmd =TUNNEL_DST_PORT_FREE_REQ_TUNNEL_TYPE_VXLAN ; +else + cmd =TUNNEL_DST_PORT_FREE_REQ_TUNNEL_TYPE_GENEVE ;return bnxt_hwrm_tunnel_dst_port_free (bp, cmd); }static const struct udp_tunnel_nic_info bnxt_udp_tunnels = { - .sync_table = bnxt_udp_tunnel_sync, + .set_port = bnxt_udp_tunnel_set_port, + .unset_port = bnxt_udp_tunnel_unset_port, .flags =UDP_TUNNEL_NIC_INFO_MAY_SLEEP |UDP_TUNNEL_NIC_INFO_OPEN_ONLY , .tables = {
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c +1 -1
@@ -3440,7 +3440,7 @@ static int bnxt_reset(struct net_device *dev, u32 *flags) } } -if (req &BNXT_FW_RESET_AP ) { +if (!BNXT_CHIP_P4_PLUS (bp) && (req &BNXT_FW_RESET_AP )) {/* This feature is not supported in older firmware versions */ if (bp->hwrm_spec_code >=0x10803 ) {if (!bnxt_firmware_reset_ap (dev)) {
drivers/net/ethernet/intel/i40e/i40e_alloc.h +6 -11
@@ -20,16 +20,11 @@ enum i40e_memory_type { };/* prototype for functions used for dynamic memory allocation */ -i40e_status i40e_allocate_dma_mem (struct i40e_hw *hw, -struct i40e_dma_mem *mem, -enum i40e_memory_type type, -u64 size,u32 alignment); -i40e_status i40e_free_dma_mem (struct i40e_hw *hw, -struct i40e_dma_mem *mem); -i40e_status i40e_allocate_virt_mem (struct i40e_hw *hw, -struct i40e_virt_mem *mem, -u32 size); -i40e_status i40e_free_virt_mem (struct i40e_hw *hw, -struct i40e_virt_mem *mem); +int i40e_allocate_dma_mem (struct i40e_hw *hw,struct i40e_dma_mem *mem, +enum i40e_memory_type type,u64 size,u32 alignment); +int i40e_free_dma_mem (struct i40e_hw *hw,struct i40e_dma_mem *mem); +int i40e_allocate_virt_mem (struct i40e_hw *hw,struct i40e_virt_mem *mem, +u32 size); +int i40e_free_virt_mem (struct i40e_hw *hw,struct i40e_virt_mem *mem);#endif /* _I40E_ALLOC_H_ */
drivers/net/ethernet/intel/ice/ice_fltr.c +1 -1
@@ -128,7 +128,7 @@ void ice_fltr_remove_all(struct ice_vsi *vsi)* @mac: MAC address to add * @action: filter action */ -int +enum ice_status ice_fltr_add_mac_to_list (struct ice_vsi *vsi,struct list_head *list,const u8 *mac,enum ice_sw_fwd_act_type action) {
drivers/net/ethernet/qlogic/qed/qed_l2.c +1 -1
@@ -1902,7 +1902,7 @@ void qed_get_vport_stats(struct qed_dev *cdev, struct qed_eth_stats *stats) {u32 i; -if (!cdev) { +if (!cdev || cdev->recov_in_prog) {memset (stats,0 ,sizeof (*stats));return ; }
drivers/net/ethernet/qlogic/qede/qede.h +4 -0
@@ -273,6 +273,10 @@ struct qede_dev {#define QEDE_ERR_WARN 3struct qede_dump_info dump_info; +struct delayed_work periodic_task; +unsigned long stats_coal_ticks; +u32 stats_coal_usecs; +spinlock_t stats_lock;/* lock for vport stats access */ };enum QEDE_STATE {
drivers/net/ethernet/qlogic/qede/qede_ethtool.c +22 -2
@@ -426,6 +426,8 @@ static void qede_get_ethtool_stats(struct net_device *dev, } } +spin_lock (&edev->stats_lock); +for (i =0 ; i <QEDE_NUM_STATS ; i++) {if (qede_is_irrelevant_stat (edev, i))continue ;
@@ -435,6 +437,8 @@ static void qede_get_ethtool_stats(struct net_device *dev, buf++; } +spin_unlock (&edev->stats_lock); +__qede_unlock (edev); }
@@ -815,6 +819,7 @@ static int qede_get_coalesce(struct net_device *dev, coal->rx_coalesce_usecs = rx_coal; coal->tx_coalesce_usecs = tx_coal; + coal->stats_block_coalesce_usecs = edev->stats_coal_usecs;return rc; }
@@ -827,6 +832,19 @@ static int qede_set_coalesce(struct net_device *dev,int i, rc =0 ;u16 rxc, txc; +if (edev->stats_coal_usecs != coal->stats_block_coalesce_usecs) { + edev->stats_coal_usecs = coal->stats_block_coalesce_usecs; +if (edev->stats_coal_usecs) { + edev->stats_coal_ticks =usecs_to_jiffies (edev->stats_coal_usecs); +schedule_delayed_work (&edev->periodic_task,0 ); + +DP_INFO (edev,"Configured stats coal ticks=%lu jiffies\n" , + edev->stats_coal_ticks); + }else { +cancel_delayed_work_sync (&edev->periodic_task); + } + } +if (!netif_running (dev)) {DP_INFO (edev,"Interface is down\n" );return -EINVAL ;
@@ -2106,7 +2124,8 @@ static int qede_get_dump_data(struct net_device *dev, }static const struct ethtool_ops qede_ethtool_ops = { - .supported_coalesce_params =ETHTOOL_COALESCE_USECS , + .supported_coalesce_params =ETHTOOL_COALESCE_USECS | +ETHTOOL_COALESCE_STATS_BLOCK_USECS , .get_link_ksettings = qede_get_link_ksettings, .set_link_ksettings = qede_set_link_ksettings, .get_drvinfo = qede_get_drvinfo,
@@ -2155,7 +2174,8 @@ static const struct ethtool_ops qede_ethtool_ops = { };static const struct ethtool_ops qede_vf_ethtool_ops = { - .supported_coalesce_params =ETHTOOL_COALESCE_USECS , + .supported_coalesce_params =ETHTOOL_COALESCE_USECS | +ETHTOOL_COALESCE_STATS_BLOCK_USECS , .get_link_ksettings = qede_get_link_ksettings, .get_drvinfo = qede_get_drvinfo, .get_msglevel = qede_get_msglevel,
drivers/net/ethernet/qlogic/qede/qede_main.c +33 -1
@@ -313,6 +313,8 @@ void qede_fill_by_demand_stats(struct qede_dev *edev) edev->ops->get_vport_stats (edev->cdev, &stats); +spin_lock (&edev->stats_lock); + p_common->no_buff_discards = stats.common.no_buff_discards; p_common->packet_too_big_discard = stats.common.packet_too_big_discard; p_common->ttl0_discard = stats.common.ttl0_discard;
@@ -410,6 +412,8 @@ void qede_fill_by_demand_stats(struct qede_dev *edev) p_ah->tx_1519_to_max_byte_packets = stats.ah.tx_1519_to_max_byte_packets; } + +spin_unlock (&edev->stats_lock); } static void qede_get_stats64(struct net_device *dev,
@@ -418,9 +422,10 @@ static void qede_get_stats64(struct net_device *dev,struct qede_dev *edev =netdev_priv (dev);struct qede_stats_common *p_common; -qede_fill_by_demand_stats (edev); p_common = &edev->stats.common; +spin_lock (&edev->stats_lock); + stats->rx_packets = p_common->rx_ucast_pkts + p_common->rx_mcast_pkts + p_common->rx_bcast_pkts; stats->tx_packets = p_common->tx_ucast_pkts + p_common->tx_mcast_pkts +
@@ -440,6 +445,8 @@ static void qede_get_stats64(struct net_device *dev, stats->collisions = edev->stats.bb.tx_total_collisions; stats->rx_crc_errors = p_common->rx_crc_errors; stats->rx_frame_errors = p_common->rx_align_errors; + +spin_unlock (&edev->stats_lock); }#ifdef CONFIG_QED_SRIOV
@@ -1001,6 +1008,23 @@ static void qede_unlock(struct qede_dev *edev)rtnl_unlock (); } +static void qede_periodic_task (struct work_struct *work) +{ + struct qede_dev *edev = container_of(work, struct qede_dev, + periodic_task.work); + +qede_fill_by_demand_stats (edev); +schedule_delayed_work (&edev->periodic_task, edev->stats_coal_ticks); +} + +static void qede_init_periodic_task (struct qede_dev *edev) +{ +INIT_DELAYED_WORK (&edev->periodic_task, qede_periodic_task); +spin_lock_init (&edev->stats_lock); + edev->stats_coal_usecs =USEC_PER_SEC ; + edev->stats_coal_ticks =usecs_to_jiffies (USEC_PER_SEC ); +} +static void qede_sp_task (struct work_struct *work) { struct qede_dev *edev = container_of(work, struct qede_dev,
@@ -1020,6 +1044,7 @@ static void qede_sp_task(struct work_struct *work)*/ if (test_and_clear_bit (QEDE_SP_RECOVERY , &edev->sp_flags)) { +cancel_delayed_work_sync (&edev->periodic_task);#ifdef CONFIG_QED_SRIOV /* SRIOV must be disabled outside the lock to avoid a deadlock. * The recovery of the active VFs is currently not supported.
@@ -1216,6 +1241,7 @@ static int __qede_probe(struct pci_dev *pdev, u32 dp_module, u8 dp_level,*/ INIT_DELAYED_WORK (&edev->sp_task, qede_sp_task);mutex_init (&edev->qede_lock); +qede_init_periodic_task (edev); rc =register_netdev (edev->ndev);if (rc) {
@@ -1240,6 +1266,11 @@ static int __qede_probe(struct pci_dev *pdev, u32 dp_module, u8 dp_level, edev->rx_copybreak =QEDE_RX_HDR_SIZE ;qede_log_probe (edev); + +/* retain user config (for example - after recovery) */ +if (edev->stats_coal_usecs) +schedule_delayed_work (&edev->periodic_task,0 ); +return 0 ; err4:
@@ -1308,6 +1339,7 @@ static void __qede_remove(struct pci_dev *pdev, enum qede_remove_mode mode)unregister_netdev (ndev);cancel_delayed_work_sync (&edev->sp_task); +cancel_delayed_work_sync (&edev->periodic_task); edev->ops->common->set_power_state (cdev,PCI_D0 );
drivers/net/ethernet/sfc/ef100_tx.c +2 -1
@@ -333,7 +333,8 @@ void ef100_ev_tx(struct efx_channel *channel, const efx_qword_t *p_event)* Returns 0 on success, error code otherwise. In case of an error this * function will free the SKB. */ -int ef100_enqueue_skb (struct efx_tx_queue *tx_queue,struct sk_buff *skb) +netdev_tx_t ef100_enqueue_skb (struct efx_tx_queue *tx_queue, +struct sk_buff *skb) {unsigned int old_insert_count = tx_queue->insert_count;struct efx_nic *efx = tx_queue->efx;
drivers/net/wireless/mediatek/mt76/mt7615/mac.c +3 -0
@@ -779,7 +779,10 @@ void mt7615_mac_sta_poll(struct mt7615_dev *dev) msta = list_first_entry(&sta_poll_list, struct mt7615_sta, poll_list); + +spin_lock_bh (&dev->sta_poll_lock);list_del_init (&msta->poll_list); +spin_unlock_bh (&dev->sta_poll_lock); addr =mt7615_mac_wtbl_addr (dev, msta->wcid.idx) +19 *4 ;
drivers/pinctrl/meson/pinctrl-meson-axg.c +1 -0
@@ -400,6 +400,7 @@ static struct meson_pmx_group meson_axg_periphs_groups[] = {GPIO_GROUP (GPIOA_15 ),GPIO_GROUP (GPIOA_16 ),GPIO_GROUP (GPIOA_17 ), +GPIO_GROUP (GPIOA_18 ),GPIO_GROUP (GPIOA_19 ), GPIO_GROUP(GPIOA_20),
drivers/s390/block/dasd_ioctl.c +2 -2
@@ -505,10 +505,10 @@ static int __dasd_ioctl_information(struct dasd_block *block,memcpy (dasd_info->type, base->discipline->name,4 ); -spin_lock_irqsave (&block->queue_lock, flags); +spin_lock_irqsave (get_ccwdev_lock (base->cdev), flags);list_for_each (l, &base->ccw_queue) dasd_info->chanq_len++; -spin_unlock_irqrestore (&block->queue_lock, flags); +spin_unlock_irqrestore (get_ccwdev_lock (base->cdev), flags);return 0 ; }
drivers/spi/spi-qup.c +18 -19
@@ -1030,23 +1030,8 @@ static int spi_qup_probe(struct platform_device *pdev)return -ENXIO ; } - ret =clk_prepare_enable (cclk); -if (ret) { -dev_err (dev,"cannot enable core clock\n" ); -return ret; - } - - ret =clk_prepare_enable (iclk); -if (ret) { -clk_disable_unprepare (cclk); -dev_err (dev,"cannot enable iface clock\n" ); -return ret; - } - master =spi_alloc_master (dev,sizeof (struct spi_qup ));if (!master) { -clk_disable_unprepare (cclk); -clk_disable_unprepare (iclk);dev_err (dev,"cannot allocate master\n" );return -ENOMEM ; }
@@ -1092,6 +1077,19 @@ static int spi_qup_probe(struct platform_device *pdev)spin_lock_init (&controller->lock);init_completion (&controller->done); + ret =clk_prepare_enable (cclk); +if (ret) { +dev_err (dev,"cannot enable core clock\n" ); + goto error_dma; + } + + ret =clk_prepare_enable (iclk); +if (ret) { +clk_disable_unprepare (cclk); +dev_err (dev,"cannot enable iface clock\n" ); + goto error_dma; + } + iomode =readl_relaxed (base +QUP_IO_M_MODES ); size =QUP_IO_M_OUTPUT_BLOCK_SIZE (iomode);
@@ -1121,7 +1119,7 @@ static int spi_qup_probe(struct platform_device *pdev) ret =spi_qup_set_state (controller,QUP_STATE_RESET );if (ret) {dev_err (dev,"cannot set RESET state\n" ); - goto error_dma; + goto error_clk; }writel_relaxed (0 , base +QUP_OPERATIONAL );
@@ -1145,7 +1143,7 @@ static int spi_qup_probe(struct platform_device *pdev) ret =devm_request_irq (dev, irq, spi_qup_qup_irq,IRQF_TRIGGER_HIGH , pdev->name, controller);if (ret) - goto error_dma; + goto error_clk;pm_runtime_set_autosuspend_delay (dev,MSEC_PER_SEC );pm_runtime_use_autosuspend (dev);
@@ -1160,11 +1158,12 @@ static int spi_qup_probe(struct platform_device *pdev) disable_pm:pm_runtime_disable (&pdev->dev); +error_clk: +clk_disable_unprepare (cclk); +clk_disable_unprepare (iclk); error_dma:spi_qup_release_dma (master); error: -clk_disable_unprepare (cclk); -clk_disable_unprepare (iclk);spi_master_put (master);return ret; }
drivers/staging/rtl8192e/rtl8192e/rtl_core.c +3 -3
@@ -50,9 +50,9 @@ static const struct rtl819x_ops rtl819xp_ops = { };static struct pci_device_id rtl8192_pci_id_tbl[] = { - {PCI_DEVICE (0x10ec ,0x8192 )}, - {PCI_DEVICE (0x07aa ,0x0044 )}, - {PCI_DEVICE (0x07aa ,0x0047 )}, + {RTL_PCI_DEVICE (0x10ec ,0x8192 , rtl819xp_ops)}, + {RTL_PCI_DEVICE (0x07aa ,0x0044 , rtl819xp_ops)}, + {RTL_PCI_DEVICE (0x07aa ,0x0047 , rtl819xp_ops)}, {} };
drivers/staging/rtl8192e/rtl8192e/rtl_core.h +5 -0
@@ -55,6 +55,11 @@#define IS_HARDWARE_TYPE_8192SE (_priv) \ (((struct r8192_priv *)rtllib_priv(dev))->card_8192 == NIC_8192SE) +#define RTL_PCI_DEVICE (vend, dev, cfg) \ + .vendor = (vend), .device = (dev), \ + .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, \ + .driver_data = (kernel_ulong_t)&(cfg) +#define TOTAL_CAM_ENTRY 32#define CAM_CONTENT_COUNT 8
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +13 -11
@@ -147,12 +147,11 @@ vchiq_blocking_bulk_transfer(unsigned int handle, void *data, unsigned int size, enum vchiq_bulk_dir dir);#define VCHIQ_INIT_RETRIES 10 -enum vchiq_status vchiq_initialise (struct vchiq_instance **instance_out) +int vchiq_initialise (struct vchiq_instance **instance_out) { -enum vchiq_status status =VCHIQ_ERROR ;struct vchiq_state *state;struct vchiq_instance *instance =NULL ; -int i; +int i, ret;vchiq_log_trace (vchiq_core_log_level,"%s called" , __func__);
@@ -169,6 +168,7 @@ enum vchiq_status vchiq_initialise(struct vchiq_instance **instance_out)if (i ==VCHIQ_INIT_RETRIES ) {vchiq_log_error (vchiq_core_log_level,"%s: videocore not initialized\n" , __func__); + ret = -ENOTCONN ; goto failed; }else if (i >0 ) { vchiq_log_warning(vchiq_core_log_level,
@@ -180,6 +180,7 @@ enum vchiq_status vchiq_initialise(struct vchiq_instance **instance_out)if (!instance) {vchiq_log_error (vchiq_core_log_level,"%s: error allocating vchiq instance\n" , __func__); + ret = -ENOMEM ; goto failed; }
@@ -190,13 +191,13 @@ enum vchiq_status vchiq_initialise(struct vchiq_instance **instance_out) *instance_out = instance; - status =VCHIQ_SUCCESS ; + ret =0 ; failed:vchiq_log_trace (vchiq_core_log_level, -"%s(%p): returning %d" , __func__, instance, status); +"%s(%p): returning %d" , __func__, instance, ret); -return status; +return ret; }EXPORT_SYMBOL (vchiq_initialise);
@@ -2223,6 +2224,7 @@ vchiq_keepalive_thread_func(void *v)enum vchiq_status status;struct vchiq_instance *instance;unsigned int ka_handle; +int ret;struct vchiq_service_params_kernel params = { .fourcc =VCHIQ_MAKE_FOURCC ('K' ,'E' ,'E' ,'P' ),
@@ -2231,10 +2233,10 @@ vchiq_keepalive_thread_func(void *v) .version_min = KEEPALIVE_VER_MIN }; - status =vchiq_initialise (&instance); -if (status !=VCHIQ_SUCCESS ) { + ret =vchiq_initialise (&instance); +if (ret) {vchiq_log_error (vchiq_susp_log_level, -"%s vchiq_initialise failed %d" , __func__, status); +"%s vchiq_initialise failed %d" , __func__, ret); goto exit; }
@@ -2313,7 +2315,7 @@ vchiq_arm_init_state(struct vchiq_state *state,return VCHIQ_SUCCESS ; } -enum vchiq_status +int vchiq_use_internal (struct vchiq_state *state,struct vchiq_service *service,enum USE_TYPE_E use_type) {
@@ -2373,7 +2375,7 @@ vchiq_use_internal(struct vchiq_state *state, struct vchiq_service *service,return ret; } -enum vchiq_status +int vchiq_release_internal (struct vchiq_state *state,struct vchiq_service *service) {struct vchiq_arm_state *arm_state =vchiq_platform_get_arm_state (state);
drivers/tee/amdtee/amdtee_if.h +6 -4
@@ -118,16 +118,18 @@ struct tee_cmd_unmap_shared_mem {/** * struct tee_cmd_load_ta - load Trusted Application (TA) binary into TEE -* @low_addr: [in] bits [31:0] of the physical address of the TA binary -* @hi_addr: [in] bits [63:32] of the physical address of the TA binary -* @size: [in] size of TA binary in bytes -* @ta_handle: [out] return handle of the loaded TA +* @low_addr: [in] bits [31:0] of the physical address of the TA binary +* @hi_addr: [in] bits [63:32] of the physical address of the TA binary +* @size: [in] size of TA binary in bytes +* @ta_handle: [out] return handle of the loaded TA +* @return_origin: [out] origin of return code after TEE processing */ struct tee_cmd_load_ta {u32 low_addr;u32 hi_addr;u32 size;u32 ta_handle; +u32 return_origin; };/**
drivers/tee/amdtee/call.c +17 -13
@@ -423,19 +423,23 @@ int handle_load_ta(void *data, u32 size, struct tee_ioctl_open_session_arg *arg)if (ret) { arg->ret_origin =TEEC_ORIGIN_COMMS ; arg->ret =TEEC_ERROR_COMMUNICATION ; - }else if (arg->ret ==TEEC_SUCCESS ) { - ret =get_ta_refcount (load_cmd.ta_handle); -if (!ret) { - arg->ret_origin =TEEC_ORIGIN_COMMS ; - arg->ret =TEEC_ERROR_OUT_OF_MEMORY ; - -/* Unload the TA on error */ - unload_cmd.ta_handle = load_cmd.ta_handle; -psp_tee_process_cmd (TEE_CMD_ID_UNLOAD_TA , - (void *)&unload_cmd, -sizeof (unload_cmd), &ret); - }else { -set_session_id (load_cmd.ta_handle,0 , &arg->session); + }else { + arg->ret_origin = load_cmd.return_origin; + +if (arg->ret ==TEEC_SUCCESS ) { + ret =get_ta_refcount (load_cmd.ta_handle); +if (!ret) { + arg->ret_origin =TEEC_ORIGIN_COMMS ; + arg->ret =TEEC_ERROR_OUT_OF_MEMORY ; + +/* Unload the TA on error */ + unload_cmd.ta_handle = load_cmd.ta_handle; +psp_tee_process_cmd (TEE_CMD_ID_UNLOAD_TA , + (void *)&unload_cmd, +sizeof (unload_cmd), &ret); + }else { +set_session_id (load_cmd.ta_handle,0 , &arg->session); + } } }mutex_unlock (&ta_refcount_mutex);
drivers/usb/core/buffer.c +41 -0
44 lines not on this page · raw message
drivers/usb/core/devio.c +14 -6
@@ -173,6 +173,7 @@ static int connected(struct usb_dev_state *ps)static void dec_usb_memory_use_count (struct usb_memory *usbm,int *count) {struct usb_dev_state *ps = usbm->ps; +struct usb_hcd *hcd =bus_to_hcd (ps->dev->bus);unsigned long flags;spin_lock_irqsave (&ps->lock, flags);
@@ -181,8 +182,8 @@ static void dec_usb_memory_use_count(struct usb_memory *usbm, int *count)list_del (&usbm->memlist);spin_unlock_irqrestore (&ps->lock, flags); -usb_free_coherent (ps->dev, usbm->size, usbm->mem, - usbm->dma_handle); +hcd_buffer_free_pages (hcd, usbm->size, + usbm->mem, usbm->dma_handle);usbfs_decrease_memory_usage ( usbm->size +sizeof (struct usb_memory ));kfree (usbm);
@@ -221,7 +222,7 @@ static int usbdev_mmap(struct file *file, struct vm_area_struct *vma)size_t size = vma->vm_end - vma->vm_start;void *mem;unsigned long flags; -dma_addr_t dma_handle; +dma_addr_t dma_handle =DMA_MAPPING_ERROR ;int ret; ret =usbfs_increase_memory_usage (size +sizeof (struct usb_memory ));
@@ -234,8 +235,8 @@ static int usbdev_mmap(struct file *file, struct vm_area_struct *vma) goto error_decrease_mem; } - mem =usb_alloc_coherent (ps->dev, size,GFP_USER | __GFP_NOWARN, - &dma_handle); + mem =hcd_buffer_alloc_pages (hcd, + size,GFP_USER | __GFP_NOWARN, &dma_handle);if (!mem) { ret = -ENOMEM ; goto error_free_usbm;
@@ -251,7 +252,14 @@ static int usbdev_mmap(struct file *file, struct vm_area_struct *vma) usbm->vma_use_count =1 ;INIT_LIST_HEAD (&usbm->memlist); -if (hcd->localmem_pool || !hcd_uses_dma (hcd)) { +/* +* In DMA-unavailable cases, hcd_buffer_alloc_pages allocates +* normal pages and assigns DMA_MAPPING_ERROR to dma_handle. Check +* whether we are in such cases, and then use remap_pfn_range (or +* dma_mmap_coherent) to map normal (or DMA) pages into the user +* space, respectively. +*/ +if (dma_handle ==DMA_MAPPING_ERROR ) {if (remap_pfn_range (vma, vma->vm_start,virt_to_phys (usbm->mem) >>PAGE_SHIFT , size, vma->vm_page_prot) <0 ) {
drivers/vhost/vhost.c +13 -5
@@ -1621,17 +1621,25 @@ long vhost_vring_ioctl(struct vhost_dev *d, unsigned int ioctl, void __user *arg r = -EFAULT ;break ; } -if (s.num >0xffff ) { - r = -EINVAL ; -break ; +if (vhost_has_feature (vq,VIRTIO_F_RING_PACKED )) { + vq->last_avail_idx = s.num &0xffff ; + vq->last_used_idx = (s.num >>16 ) &0xffff ; + }else { +if (s.num >0xffff ) { + r = -EINVAL ; +break ; + } + vq->last_avail_idx = s.num; } - vq->last_avail_idx = s.num;/* Forget the cached index value. */ vq->avail_idx = vq->last_avail_idx;break ;case VHOST_GET_VRING_BASE : s.index = idx; - s.num = vq->last_avail_idx; +if (vhost_has_feature (vq,VIRTIO_F_RING_PACKED )) + s.num = (u32 )vq->last_avail_idx | ((u32 )vq->last_used_idx <<16 ); +else + s.num = vq->last_avail_idx;if (copy_to_user (argp, &s,sizeof s)) r = -EFAULT ;break ;
drivers/vhost/vhost.h +6 -2
@@ -87,13 +87,17 @@ struct vhost_virtqueue {/* The routine to call when the Guest pings us, or timeout. */ vhost_work_fn_t handle_kick; -/* Last available index we saw. */ +/* Last available index we saw. +* Values are limited to 0x7fff, and the high bit is used as +* a wrap counter when using VIRTIO_F_RING_PACKED. */ u16 last_avail_idx;/* Caches available index value from user. */ u16 avail_idx; -/* Last index we used. */ +/* Last index we used. +* Values are limited to 0x7fff, and the high bit is used as +* a wrap counter when using VIRTIO_F_RING_PACKED. */ u16 last_used_idx;/* Used flags */
fs/afs/dir.c +3 -0
@@ -1313,6 +1313,7 @@ static int afs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) op->dentry = dentry; op->create.mode =S_IFDIR | mode; op->create.reason = afs_edit_dir_for_mkdir; + op->mtime =current_time (dir); op->ops = &afs_mkdir_operation;return afs_do_sync_operation (op); }
@@ -1616,6 +1617,7 @@ static int afs_create(struct inode *dir, struct dentry *dentry, umode_t mode, op->dentry = dentry; op->create.mode =S_IFREG | mode; op->create.reason = afs_edit_dir_for_create; + op->mtime =current_time (dir); op->ops = &afs_create_operation;return afs_do_sync_operation (op);
@@ -1745,6 +1747,7 @@ static int afs_symlink(struct inode *dir, struct dentry *dentry, op->ops = &afs_symlink_operation; op->create.reason = afs_edit_dir_for_symlink; op->create.symlink = content; + op->mtime =current_time (dir);return afs_do_sync_operation (op); error:
fs/btrfs/relocation.c +10 -4
@@ -1895,7 +1895,7 @@ int prepare_to_merge(struct reloc_control *rc, int err)list_splice (&reloc_roots, &rc->reloc_roots);if (!err) -btrfs_commit_transaction (trans); + err =btrfs_commit_transaction (trans);else btrfs_end_transaction (trans);return err;
@@ -3270,8 +3270,12 @@ int prepare_to_relocate(struct reloc_control *rc)*/ return PTR_ERR (trans); } -btrfs_commit_transaction (trans); -return 0 ; + + ret =btrfs_commit_transaction (trans); +if (ret) +unset_reloc_control (rc); + +return ret; } static noinline_for_stack int relocate_block_group(struct reloc_control *rc)
@@ -3443,7 +3447,9 @@ static noinline_for_stack int relocate_block_group(struct reloc_control *rc) err =PTR_ERR (trans); goto out_free; } -btrfs_commit_transaction (trans); + ret =btrfs_commit_transaction (trans); +if (ret && !err) + err = ret; out_free: ret =clean_dirty_subvols (rc);if (ret <0 && !err)
fs/ceph/caps.c +6 -0
@@ -1636,6 +1636,7 @@ void ceph_flush_snaps(struct ceph_inode_info *ci,struct inode *inode = &ci->vfs_inode;struct ceph_mds_client *mdsc =ceph_inode_to_client (inode)->mdsc;struct ceph_mds_session *session =NULL ; +bool need_put = false;int mds;dout ("ceph_flush_snaps %p\n" , inode);
@@ -1687,8 +1688,13 @@ void ceph_flush_snaps(struct ceph_inode_info *ci, }/* we flushed them all; remove this inode from the queue */ spin_lock (&mdsc->snap_flush_lock); +if (!list_empty (&ci->i_snap_flush_item)) + need_put = true;list_del_init (&ci->i_snap_flush_item);spin_unlock (&mdsc->snap_flush_lock); + +if (need_put) +iput (inode); }/*
fs/ceph/snap.c +3 -1
@@ -647,8 +647,10 @@ int __ceph_finish_cap_snap(struct ceph_inode_info *ci, capsnap->size);spin_lock (&mdsc->snap_flush_lock); -if (list_empty (&ci->i_snap_flush_item)) +if (list_empty (&ci->i_snap_flush_item)) {
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.