Linux 3.0.89
Greg KH
maintainerI'm announcing the release of the 3.0.89 kernel.
All users of the 3.0 kernel series must upgrade.
The updated 3.0.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.0.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/powerpc/include/asm/module.h | 5 - arch/powerpc/kernel/vmlinux.lds.S | 3 drivers/acpi/acpi_memhotplug.c | 1 drivers/ata/Kconfig | 2 drivers/ata/sata_inic162x.c | 14 ++ drivers/gpu/drm/radeon/atom.c | 5 + drivers/gpu/drm/radeon/radeon_combios.c | 151 +++++++++----------------------- drivers/net/virtio_net.c | 5 - drivers/scsi/qla2xxx/qla_iocb.c | 11 +- drivers/scsi/sd.c | 22 +--- drivers/staging/comedi/comedi_fops.c | 7 + drivers/usb/core/hub.c | 9 + drivers/usb/host/xhci-ring.c | 2 drivers/usb/host/xhci.c | 6 - drivers/usb/misc/sisusbvga/sisusb.c | 1 drivers/usb/serial/ftdi_sio.c | 31 +++++- drivers/usb/serial/ftdi_sio_ids.h | 34 ++++++- drivers/usb/serial/ti_usb_3410_5052.c | 2 drivers/usb/storage/unusual_devs.h | 14 ++ drivers/virtio/virtio_ring.c | 59 ++++++++++-- drivers/xen/evtchn.c | 21 ---- fs/super.c | 25 ++--- include/linux/virtio.h | 4 kernel/trace/trace_syscalls.c | 3 mm/page_alloc.c | 4 sound/soc/codecs/max98088.c | 2 27 files changed, 255 insertions(+), 190 deletions(-)
Al Viro (1):
livelock avoidance in sget()
Alex Deucher (2):
drm/radeon: improve dac adjust heuristics for legacy pdac drm/radeon/atom: initialize more atom interpretor elements to 0
Anton Blanchard (1):
powerpc/modules: Module CRC relocation fix causes perf issues
Chih-Chung Chang (1):
ASoC: max98088 - fix element type of the register cache.
David Vrabel (1):
xen/evtchn: avoid a deadlock when unbinding an event channel
Ewan D. Milne (1):
SCSI: sd: fix crash when UA received on DIF enabled device
Greg Kroah-Hartman (1):
Linux 3.0.89
Ian Abbott (1):
staging: comedi: COMEDI_CANCEL ioctl should wake up read/write
Johan Hovold (1):
USB: ti_usb_3410_5052: fix dynamic-id matching
Jóhann B. Guðmundsson (1):
USB: misc: Add Manhattan Hi-Speed USB DVI Converter to sisusbvga
Mark Kettenis (1):
drm/radeon: fix combios tables on older cards
Michael S. Tsirkin (2):
virtio: support unlocked queue poll
virtio_net: fix race in RX VQ processing
Oleksij Rempel (1):
xhci: fix null pointer dereference on ring_doorbell_for_active_rings
Ren Bigcren (2):
USB: storage: Add MicroVault Flash Drive to unusual_devs
USB: storage: Add MicroVault Flash Drive to unusual_devs
Rick Farina (Zero_Chaos) (1):
USB: serial: ftdi_sio: add more RT Systems ftdi devices
Sarah Sharp (1):
xhci: Avoid NULL pointer deref when host dies.
Saurav Kashyap (1):
SCSI: qla2xxx: Properly set the tagging for commands.
Tejun Heo (1):
libata: make it clear that sata_inic162x is experimental
Toshi Kani (1):
ACPI / memhotplug: Fix a stale pointer in error path
Wanpeng Li (1):
mm/memory-hotplug: fix lowmem count overflow when offline pages
William Gulland (1):
usb: Clear both buffers when clearing a control transfer TT buffer.
zhangwei(Jovi) (1):
tracing: Fix irqs-off tag display in syscall tracing
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 0 -SUBLEVEL = 88 +SUBLEVEL = 89 EXTRAVERSION = NAME = Sneaky Weasel
arch/powerpc/include/asm/module.h +2 -3
@@ -87,10 +87,9 @@ struct exception_table_entry;void sort_ex_table (struct exception_table_entry *start,struct exception_table_entry *finish); -#ifdef CONFIG_MODVERSIONS +#if defined(CONFIG_MODVERSIONS ) && defined(CONFIG_PPC64 )#define ARCH_RELOCATES_KCRCTAB - -extern const unsigned long reloc_start[]; +#define reloc_start PHYSICAL_START#endif #endif /* __KERNEL__ */ #endif /* _ASM_POWERPC_MODULE_H */
arch/powerpc/kernel/vmlinux.lds.S +0 -3
@@ -38,9 +38,6 @@ jiffies = jiffies_64 + 4; #endif SECTIONS { - . = 0; - reloc_start = .; - . = KERNELBASE; /*
drivers/acpi/acpi_memhotplug.c +1 -0
@@ -421,6 +421,7 @@ static int acpi_memory_device_add(struct acpi_device *device)/* Get the range from the _CRS */ result =acpi_memory_get_device_resources (mem_device);if (result) { + device->driver_data =NULL ;kfree (mem_device);return result; }
drivers/ata/Kconfig +1 -1
@@ -93,7 +93,7 @@ config SATA_FSL If unsure, say N. config SATA_INIC162X - tristate "Initio 162x SATA support" + tristate "Initio 162x SATA support (Very Experimental)" depends on PCI help This option enables support for Initio 162x Serial ATA.
drivers/ata/sata_inic162x.c +14 -0
@@ -6,6 +6,18 @@* * This file is released under GPL v2. * +* **** WARNING **** +* +* This driver never worked properly and unfortunately data corruption is +* relatively common. There isn't anyone working on the driver and there's +* no support from the vendor. Do not use this driver in any production +* environment. +* +* http://thread.gmane.org/gmane.linux.debian.devel.bugs.rc/378525/focus=54491 +* https://bugzilla.kernel.org/show_bug.cgi?id=60565 +* +* ***************** +* * This controller is eccentric and easily locks up if something isn't * right. Documentation is available at initio's website but it only * documents registers (not programming model).
@@ -810,6 +822,8 @@ static int inic_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)if (!printed_version++)dev_printk (KERN_DEBUG , &pdev->dev,"version " DRV_VERSION "\n" ); +dev_alert (&pdev->dev,"inic162x support is broken with common data corruption issues and will be disabled by default, contact [email protected] if in production use\n" ); +/* alloc host */ host =ata_host_alloc_pinfo (&pdev->dev, ppi,NR_PORTS ); hpriv =devm_kzalloc (&pdev->dev,sizeof (*hpriv),GFP_KERNEL );
drivers/gpu/drm/radeon/atom.c +5 -0
@@ -1220,12 +1220,17 @@ int atom_execute_table(struct atom_context *ctx, int index, uint32_t * params)int r;mutex_lock (&ctx->mutex); +/* reset data block */ + ctx->data_block =0 ;/* reset reg block */ ctx->reg_block =0 ;/* reset fb window */ ctx->fb_base =0 ;/* reset io mode */ ctx->io_mode =ATOM_IO_MM ; +/* reset divmul */ + ctx->divmul[0 ] =0 ; + ctx->divmul[1 ] =0 ; r =atom_execute_table_locked (ctx, index, params);mutex_unlock (&ctx->mutex);return r;
drivers/gpu/drm/radeon/radeon_combios.c +45 -106
245 lines not on this page · raw message
drivers/net/virtio_net.c +3 -2
@@ -480,7 +480,7 @@ static int virtnet_poll(struct napi_struct *napi, int budget) { struct virtnet_info *vi = container_of(napi, struct virtnet_info, napi);void *buf; -unsigned int len, received =0 ; +unsigned int r, len, received =0 ; again: while (received < budget &&
@@ -497,8 +497,9 @@ again:/* Out of packets? */ if (received < budget) { + r =virtqueue_enable_cb_prepare (vi->rvq);napi_complete (napi); -if (unlikely (!virtqueue_enable_cb (vi->rvq)) && +if (unlikely (virtqueue_poll (vi->rvq, r)) &&napi_schedule_prep (napi)) {virtqueue_disable_cb (vi->rvq);__napi_schedule (napi);
drivers/scsi/qla2xxx/qla_iocb.c +9 -2
@@ -422,6 +422,8 @@ qla2x00_start_scsi(srb_t *sp)__constant_cpu_to_le16 (CF_SIMPLE_TAG );break ; } + }else { + cmd_pkt->control_flags =__constant_cpu_to_le16 (CF_SIMPLE_TAG ); }/* Load SCSI command packet. */
@@ -1099,11 +1101,11 @@ qla24xx_build_scsi_crc_2_iocbs(srb_t *sp, struct cmd_type_crc_2 *cmd_pkt, fcp_cmnd->task_attribute =TSK_ORDERED ;break ;default : - fcp_cmnd->task_attribute =0 ; + fcp_cmnd->task_attribute =TSK_SIMPLE ;break ; } }else { - fcp_cmnd->task_attribute =0 ; + fcp_cmnd->task_attribute =TSK_SIMPLE ; } cmd_pkt->fcp_rsp_dseg_len =0 ;/* Let response come in status iocb */
@@ -1305,7 +1307,12 @@ qla24xx_start_scsi(srb_t *sp)case ORDERED_QUEUE_TAG : cmd_pkt->task =TSK_ORDERED ;break ; +default : + cmd_pkt->task =TSK_SIMPLE ; +break ; } + }else { + cmd_pkt->task =TSK_SIMPLE ; }/* Load SCSI command packet. */
drivers/scsi/sd.c +7 -15
@@ -641,10 +641,17 @@ static int scsi_setup_flush_cmnd(struct scsi_device *sdp, struct request *rq)static void sd_unprep_fn (struct request_queue *q,struct request *rq) { +struct scsi_cmnd *SCpnt = rq->special; +if (rq->cmd_flags &REQ_DISCARD ) {free_page ((unsigned long )rq->buffer); rq->buffer =NULL ; } +if (SCpnt->cmnd != rq->cmd) { +mempool_free (SCpnt->cmnd, sd_cdb_pool); + SCpnt->cmnd =NULL ; + SCpnt->cmd_len =0 ; + } }/**
@@ -1451,21 +1458,6 @@ static int sd_done(struct scsi_cmnd *SCpnt)if (rq_data_dir (SCpnt->request) ==READ &&scsi_prot_sg_count (SCpnt))sd_dif_complete (SCpnt, good_bytes); -if (scsi_host_dif_capable (sdkp->device->host, sdkp->protection_type) - ==SD_DIF_TYPE2_PROTECTION && SCpnt->cmnd != SCpnt->request->cmd) { - -/* We have to print a failed command here as the -* extended CDB gets freed before scsi_io_completion() -* is called. -*/ -if (result) -scsi_print_command (SCpnt); - -mempool_free (SCpnt->cmnd, sd_cdb_pool); - SCpnt->cmnd =NULL ; - SCpnt->cmd_len =0 ; - } -return good_bytes; }
drivers/staging/comedi/comedi_fops.c +6 -1
@@ -1370,6 +1370,7 @@ static int do_cancel_ioctl(struct comedi_device *dev, unsigned int arg, void *file) {struct comedi_subdevice *s; +int ret;if (arg >= dev->n_subdevices)return -EINVAL ;
@@ -1386,7 +1387,11 @@ static int do_cancel_ioctl(struct comedi_device *dev, unsigned int arg,if (s->busy != file)return -EBUSY ; -return do_cancel (dev, s); + ret =do_cancel (dev, s); +if (comedi_get_subdevice_runflags (s) &SRF_USER ) +wake_up_interruptible (&s->async->wait_head); + +return ret; }/*
drivers/usb/core/hub.c +9 -0
@@ -463,6 +463,15 @@ resubmit:static inline int hub_clear_tt_buffer (struct usb_device *hdev,u16 devinfo,u16 tt) { +/* Need to clear both directions for control ep */ +if (((devinfo >>11 ) &USB_ENDPOINT_XFERTYPE_MASK ) == +USB_ENDPOINT_XFER_CONTROL ) { +int status =usb_control_msg (hdev,usb_sndctrlpipe (hdev,0 ), +HUB_CLEAR_TT_BUFFER ,USB_RT_PORT , + devinfo ^0x8000 , tt,NULL ,0 ,1000 ); +if (status) +return status; + }return usb_control_msg (hdev,usb_sndctrlpipe (hdev,0 ),HUB_CLEAR_TT_BUFFER ,USB_RT_PORT , devinfo, tt,NULL ,0 ,1000 );
drivers/usb/host/xhci-ring.c +1 -1
@@ -465,7 +465,7 @@ static void ring_doorbell_for_active_rings(struct xhci_hcd *xhci,/* A ring has pending URBs if its TD list is not empty */ if (!(ep->ep_state &EP_HAS_STREAMS )) { -if (!(list_empty (&ep->ring->td_list))) +if (ep->ring && !(list_empty (&ep->ring->td_list)))xhci_ring_ep_doorbell (xhci, slot_id, ep_index,0 );return ; }
drivers/usb/host/xhci.c +3 -3
@@ -956,9 +956,6 @@ static int xhci_check_args(struct usb_hcd *hcd, struct usb_device *udev, } xhci =hcd_to_xhci (hcd); -if (xhci->xhc_state &XHCI_STATE_HALTED ) -return -ENODEV ; -if (check_virt_dev) {if (!udev->slot_id || !xhci->devs || !xhci->devs[udev->slot_id]) {
@@ -975,6 +972,9 @@ static int xhci_check_args(struct usb_hcd *hcd, struct usb_device *udev, } } +if (xhci->xhc_state &XHCI_STATE_HALTED ) +return -ENODEV ; +return 1 ; }
drivers/usb/misc/sisusbvga/sisusb.c +1 -0
@@ -3247,6 +3247,7 @@ static const struct usb_device_id sisusb_table[] = { { USB_DEVICE(0x0711, 0x0903) }, { USB_DEVICE(0x0711, 0x0918) }, { USB_DEVICE(0x0711, 0x0920) }, + { USB_DEVICE(0x0711, 0x0950) }, { USB_DEVICE(0x182d, 0x021c) }, { USB_DEVICE(0x182d, 0x0269) }, { }
drivers/usb/serial/ftdi_sio.c +28 -3
@@ -743,9 +743,34 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(FTDI_VID, FTDI_NDI_AURORA_SCU_PID), .driver_info = (kernel_ulong_t)&ftdi_NDI_device_quirk }, { USB_DEVICE(TELLDUS_VID, TELLDUS_TELLSTICK_PID) }, - { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_SERIAL_VX7_PID) }, - { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_CT29B_PID) }, - { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_RTS01_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_S03_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_59_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_57A_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_57B_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_29A_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_29B_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_29F_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_62B_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_S01_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_63_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_29C_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_81B_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_82B_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_K5D_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_K4Y_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_K5G_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_S05_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_60_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_61_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_62_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_63B_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_64_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_65_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_92_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_92D_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_W5R_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_A5R_PID) }, + { USB_DEVICE(RTSYSTEMS_VID, RTSYSTEMS_USB_PW1_PID) }, { USB_DEVICE(FTDI_VID, FTDI_MAXSTREAM_PID) }, { USB_DEVICE(FTDI_VID, FTDI_PHI_FISCO_PID) }, { USB_DEVICE(TML_VID, TML_USB_SERIAL_PID) },
drivers/usb/serial/ftdi_sio_ids.h +29 -5
@@ -815,11 +815,35 @@/* * RT Systems programming cables for various ham radios */ -#define RTSYSTEMS_VID 0x2100/* Vendor ID */ -#define RTSYSTEMS_SERIAL_VX7_PID 0x9e52/* Serial converter for VX-7 Radios using FT232RL */ -#define RTSYSTEMS_CT29B_PID 0x9e54/* CT29B Radio Cable */ -#define RTSYSTEMS_RTS01_PID 0x9e57/* USB-RTS01 Radio Cable */ - +#define RTSYSTEMS_VID 0x2100/* Vendor ID */ +#define RTSYSTEMS_USB_S03_PID 0x9001/* RTS-03 USB to Serial Adapter */ +#define RTSYSTEMS_USB_59_PID 0x9e50/* USB-59 USB to 8 pin plug */ +#define RTSYSTEMS_USB_57A_PID 0x9e51/* USB-57A USB to 4pin 3.5mm plug */ +#define RTSYSTEMS_USB_57B_PID 0x9e52/* USB-57B USB to extended 4pin 3.5mm plug */ +#define RTSYSTEMS_USB_29A_PID 0x9e53/* USB-29A USB to 3.5mm stereo plug */ +#define RTSYSTEMS_USB_29B_PID 0x9e54/* USB-29B USB to 6 pin mini din */ +#define RTSYSTEMS_USB_29F_PID 0x9e55/* USB-29F USB to 6 pin modular plug */ +#define RTSYSTEMS_USB_62B_PID 0x9e56/* USB-62B USB to 8 pin mini din plug*/ +#define RTSYSTEMS_USB_S01_PID 0x9e57/* USB-RTS01 USB to 3.5 mm stereo plug*/ +#define RTSYSTEMS_USB_63_PID 0x9e58/* USB-63 USB to 9 pin female*/ +#define RTSYSTEMS_USB_29C_PID 0x9e59/* USB-29C USB to 4 pin modular plug*/ +#define RTSYSTEMS_USB_81B_PID 0x9e5A/* USB-81 USB to 8 pin mini din plug*/ +#define RTSYSTEMS_USB_82B_PID 0x9e5B/* USB-82 USB to 2.5 mm stereo plug*/ +#define RTSYSTEMS_USB_K5D_PID 0x9e5C/* USB-K5D USB to 8 pin modular plug*/ +#define RTSYSTEMS_USB_K4Y_PID 0x9e5D/* USB-K4Y USB to 2.5/3.5 mm plugs*/ +#define RTSYSTEMS_USB_K5G_PID 0x9e5E/* USB-K5G USB to 8 pin modular plug*/ +#define RTSYSTEMS_USB_S05_PID 0x9e5F/* USB-RTS05 USB to 2.5 mm stereo plug*/ +#define RTSYSTEMS_USB_60_PID 0x9e60/* USB-60 USB to 6 pin din*/ +#define RTSYSTEMS_USB_61_PID 0x9e61/* USB-61 USB to 6 pin mini din*/ +#define RTSYSTEMS_USB_62_PID 0x9e62/* USB-62 USB to 8 pin mini din*/ +#define RTSYSTEMS_USB_63B_PID 0x9e63/* USB-63 USB to 9 pin female*/ +#define RTSYSTEMS_USB_64_PID 0x9e64/* USB-64 USB to 9 pin male*/ +#define RTSYSTEMS_USB_65_PID 0x9e65/* USB-65 USB to 9 pin female null modem*/ +#define RTSYSTEMS_USB_92_PID 0x9e66/* USB-92 USB to 12 pin plug*/ +#define RTSYSTEMS_USB_92D_PID 0x9e67/* USB-92D USB to 12 pin plug data*/ +#define RTSYSTEMS_USB_W5R_PID 0x9e68/* USB-W5R USB to 8 pin modular plug*/ +#define RTSYSTEMS_USB_A5R_PID 0x9e69/* USB-A5R USB to 8 pin modular plug*/ +#define RTSYSTEMS_USB_PW1_PID 0x9e6A/* USB-PW1 USB to 8 pin modular plug*/ /* * Physik Instrumente
drivers/usb/serial/ti_usb_3410_5052.c +1 -1
@@ -409,7 +409,7 @@ static int ti_startup(struct usb_serial *serial)usb_set_serial_data (serial, tdev);/* determine device type */ -if (usb_match_id (serial->interface, ti_id_table_3410)) +if (serial->type == &ti_1port_device) tdev->td_is_3410 =1 ;dbg ("%s - device type is %s" , __func__, tdev->td_is_3410 ?"3410" :"5052" );
drivers/usb/storage/unusual_devs.h +14 -0
@@ -657,6 +657,20 @@ UNUSUAL_DEV( 0x054c, 0x016a, 0x0000, 0x9999, USB_SC_DEVICE, USB_PR_DEVICE, NULL, US_FL_FIX_INQUIRY ), +/* Submitted by Ren Bigcren <[email protected]> */ +UNUSUAL_DEV (0x054c ,0x02a5 ,0x0100 ,0x0100 , +"Sony Corp." , +"MicroVault Flash Drive" , +USB_SC_DEVICE ,USB_PR_DEVICE ,NULL , +US_FL_NO_READ_CAPACITY_16 ), + +/* Submitted by Ren Bigcren <[email protected]> */ +UNUSUAL_DEV (0x054c ,0x02a5 ,0x0100 ,0x0100 , +"Sony Corp." , +"MicroVault Flash Drive" , +USB_SC_DEVICE ,USB_PR_DEVICE ,NULL , +US_FL_NO_READ_CAPACITY_16 ), +/* floppy reports multiple luns */ UNUSUAL_DEV( 0x055d, 0x2020, 0x0000, 0x0210, "SAMSUNG",
drivers/virtio/virtio_ring.c +51 -8
75 lines not on this page · raw message
drivers/xen/evtchn.c +2 -19
@@ -367,18 +367,12 @@ static long evtchn_ioctl(struct file *file,if (unbind.port >=NR_EVENT_CHANNELS )break ; -spin_lock_irq (&port_user_lock); - rc = -ENOTCONN ; -if (get_port_user (unbind.port) != u) { -spin_unlock_irq (&port_user_lock); +if (get_port_user (unbind.port) != u)break ; - }disable_irq (irq_from_evtchn (unbind.port)); -spin_unlock_irq (&port_user_lock); -evtchn_unbind_from_user (u, unbind.port); rc =0 ;
@@ -478,26 +472,15 @@ static int evtchn_release(struct inode *inode, struct file *filp)int i;struct per_user_data *u = filp->private_data; -spin_lock_irq (&port_user_lock); - -free_page ((unsigned long )u->ring); -for (i =0 ; i <NR_EVENT_CHANNELS ; i++) {if (get_port_user (i) != u)continue ;disable_irq (irq_from_evtchn (i)); - } - -spin_unlock_irq (&port_user_lock); - -for (i =0 ; i <NR_EVENT_CHANNELS ; i++) { -if (get_port_user (i) != u) -continue ; -evtchn_unbind_from_user (get_port_user (i), i); } +free_page ((unsigned long )u->ring);kfree (u->name);kfree (u);
fs/super.c +10 -15
@@ -222,19 +222,19 @@ EXPORT_SYMBOL(deactivate_super);* and want to turn it into a full-blown active reference. grab_super() * is called with sb_lock held and drops it. Returns 1 in case of * success, 0 if we had failed (superblock contents was already dead or -* dying when grab_super() had been called). +* dying when grab_super() had been called). Note that this is only +* called for superblocks not in rundown mode (== ones still on ->fs_supers +* of their type), so increment of ->s_count is OK here. */ static int grab_super (struct super_block *s)__releases (sb_lock) { -if (atomic_inc_not_zero (&s->s_active)) { -spin_unlock (&sb_lock); -return 1 ; - } -/* it's going away */ s->s_count++;spin_unlock (&sb_lock); -/* wait for it to die */ down_write (&s->s_umount); +if ((s->s_flags &MS_BORN ) &&atomic_inc_not_zero (&s->s_active)) { +put_super (s); +return 1 ; + }up_write (&s->s_umount);put_super (s);return 0 ;
@@ -335,11 +335,6 @@ retry:destroy_super (s); s =NULL ; } -down_write (&old->s_umount); -if (unlikely (!(old->s_flags &MS_BORN ))) { -deactivate_locked_super (old); - goto retry; - }return old; } }
@@ -512,10 +507,10 @@ restart:if (list_empty (&sb->s_instances))continue ;if (sb->s_bdev == bdev) { -if (grab_super (sb))/* drops sb_lock */ -return sb; -else +if (!grab_super (sb)) goto restart; +up_write (&sb->s_umount); +return sb; } }spin_unlock (&sb_lock);
include/linux/virtio.h +4 -0
@@ -93,6 +93,10 @@ void virtqueue_disable_cb(struct virtqueue *vq);bool virtqueue_enable_cb (struct virtqueue *vq); +unsigned virtqueue_enable_cb_prepare (struct virtqueue *vq); + +bool virtqueue_poll (struct virtqueue *vq,unsigned ); +bool virtqueue_enable_cb_delayed (struct virtqueue *vq);void *virtqueue_detach_unused_buf (struct virtqueue *vq);
kernel/trace/trace_syscalls.c +3 -0
@@ -357,6 +357,9 @@ void ftrace_syscall_exit(void *ignore, struct pt_regs *regs, long ret)if (!sys_data)return ; +local_save_flags (irq_flags); + pc =preempt_count (); + event =trace_current_buffer_lock_reserve (&buffer, sys_data->exit_event->event.type,sizeof (*entry), irq_flags, pc);
mm/page_alloc.c +4 -0
@@ -5737,6 +5737,10 @@ __offline_isolated_pages(unsigned long start_pfn, unsigned long end_pfn) zone->free_area[order].nr_free--;__mod_zone_page_state (zone,NR_FREE_PAGES , - (1UL << order)); +#ifdef CONFIG_HIGHMEM +if (PageHighMem (page)) + totalhigh_pages -=1 << order; +#endif for (i =0 ; i < (1 << order); i++)SetPageReserved ((page+i)); pfn += (1 << order);
sound/soc/codecs/max98088.c +1 -1
@@ -1598,7 +1598,7 @@ static int max98088_dai2_digital_mute(struct snd_soc_dai *codec_dai, int mute)static void max98088_sync_cache (struct snd_soc_codec *codec) { -u16 *reg_cache = codec->reg_cache; +u8 *reg_cache = codec->reg_cache;int i;if (!codec->cache_sync)