Skip to content
  1. Oct 11, 2012
  2. Oct 10, 2012
    • Alex Williamson's avatar
      vfio: Fix PCI INTx disable consistency · 899649b7
      Alex Williamson authored
      
      
      The virq_disabled flag tracks the userspace view of INTx masking
      across interrupt mode changes, but we're not consistently applying
      this to the interrupt and masking handler notion of the device.
      Currently if the user sets DisINTx while in MSI or MSIX mode, then
      returns to INTx mode (ex. rebooting a qemu guest), the hardware has
      DisINTx+, but the management of INTx thinks it's enabled, making it
      impossible to actually clear DisINTx.  Fix this by updating the
      handler state when INTx is re-enabled.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
      899649b7
    • Alex Williamson's avatar
      vfio: Move PCI INTx eventfd setting earlier · 9dbdfd23
      Alex Williamson authored
      
      
      We need to be ready to recieve an interrupt as soon as we call
      request_irq, so our eventfd context setting needs to be moved
      earlier.  Without this, an interrupt from our device or one
      sharing the interrupt line can pass a NULL into eventfd_signal
      and oops.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
      9dbdfd23
    • Alex Williamson's avatar
      vfio: Fix PCI mmap after b3b9c293 · 34002f54
      Alex Williamson authored
      Our mmap path mistakely relied on vma->vm_pgoff to get set in
      remap_pfn_range.  After b3b9c293
      
      , that path only applies to
      copy-on-write mappings.  Set it in our own code.
      
      Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
      34002f54
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-3.7-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · df632d3c
      Linus Torvalds authored
      Pull NFS client updates from Trond Myklebust:
       "Features include:
      
         - Remove CONFIG_EXPERIMENTAL dependency from NFSv4.1
           Aside from the issues discussed at the LKS, distros are shipping
           NFSv4.1 with all the trimmings.
         - Fix fdatasync()/fsync() for the corner case of a server reboot.
         - NFSv4 OPEN access fix: finally distinguish correctly between
           open-for-read and open-for-execute permissions in all situations.
         - Ensure that the TCP socket is closed when we're in CLOSE_WAIT
         - More idmapper bugfixes
         - Lots of pNFS bugfixes and cleanups to remove unnecessary state and
           make the code easier to read.
         - In cases where a pNFS read or write fails, allow the client to
           resume trying layoutgets after two minutes of read/write-
           through-mds.
         - More net namespace fixes to the NFSv4 callback code.
         - More net namespace fixes to the NFSv3 locking code.
         - More NFSv4 migration preparatory patches.
           Including patches to detect network trunking in both NFSv4 and
           NFSv4.1
         - pNFS block updates to optimise LAYOUTGET calls."
      
      * tag 'nfs-for-3.7-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs: (113 commits)
        pnfsblock: cleanup nfs4_blkdev_get
        NFS41: send real read size in layoutget
        NFS41: send real write size in layoutget
        NFS: track direct IO left bytes
        NFSv4.1: Cleanup ugliness in pnfs_layoutgets_blocked()
        NFSv4.1: Ensure that the layout sequence id stays 'close' to the current
        NFSv4.1: Deal with seqid wraparound in the pNFS return-on-close code
        NFSv4 set open access operation call flag in nfs4_init_opendata_res
        NFSv4.1: Remove the dependency on CONFIG_EXPERIMENTAL
        NFSv4 reduce attribute requests for open reclaim
        NFSv4: nfs4_open_done first must check that GETATTR decoded a file type
        NFSv4.1: Deal with wraparound when updating the layout "barrier" seqid
        NFSv4.1: Deal with wraparound issues when updating the layout stateid
        NFSv4.1: Always set the layout stateid if this is the first layoutget
        NFSv4.1: Fix another refcount issue in pnfs_find_alloc_layout
        NFSv4: don't put ACCESS in OPEN compound if O_EXCL
        NFSv4: don't check MAY_WRITE access bit in OPEN
        NFS: Set key construction data for the legacy upcall
        NFSv4.1: don't do two EXCHANGE_IDs on mount
        NFS: nfs41_walk_client_list(): re-lock before iterating
        ...
      df632d3c
    • Jean Delvare's avatar
      hwmon: Drop needless includes of <linux/delay.h> · 0657777f
      Jean Delvare authored
      
      
      These drivers use no sleep or delay functions so they don't need to
      include <linux/delay.h>.
      
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Acked-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Cc: Rudolf Marek <r.marek@assembler.cz>
      0657777f
    • Jean Delvare's avatar
      hwmon: Add missing inclusions of <linux/err.h> · fa845740
      Jean Delvare authored
      
      
      These drivers use IS_ERR so they should include <linux/err.h>.
      
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Acked-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Acked-by: default avatarLuca Tettamanti <kronos.it@gmail.com>
      Cc: Henrik Rydberg <rydberg@euromail.se>
      fa845740
    • Jean Delvare's avatar
      hwmon: Add missing inclusions of <linux/jiffies.h> · dcd8f392
      Jean Delvare authored
      
      
      Many hwmon drivers use jiffies but omit the inclusion of the header
      file. Fix that, and also fix one driver which was including the header
      file but didn't need it.
      
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Acked-by: default avatarGuenter Roeck <linux@roeck-us.net>
      Acked-by: default avatarLuca Tettamanti <kronos.it@gmail.com>
      Cc: Marc Hulsman <m.hulsman@tudelft.nl>
      Cc: Rudolf Marek <r.marek@assembler.cz>
      dcd8f392
    • Peter Meerwald's avatar
      hwmon: Fix spelling of Celsius · 4d7e47bc
      Peter Meerwald authored
      
      
      Signed-off-by: default avatarPeter Meerwald <pmeerw@pmeerw.net>
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      4d7e47bc