1. 08 May, 2019 34 commits
    • Steve French's avatar
      Negotiate and save preferred compression algorithms · 26ea888f
      Steve French authored
      New negotiate context (3) allows the server and client to
      negotiate which compression algorithms to use. Add support
      for this and save it off in the server structure.
      
      Also now displayed in /proc/fs/cifs/DebugData (see below example
      to Windows 10) where compression algoirthm "LZ77" was negotiated:
      
      Servers:
      Number of credits: 326 Dialect 0x311 COMPRESS_LZ77 signed
      1) Name: 192.168.92.17 Uses: 1 Capability: 0x300067	Session Status: 1 TCP status: 1 Instance: 1
      
      See MS-XCA and MS-SMB2 2.2.3.1 for more details.
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      Reviewed-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
      26ea888f
    • Ronnie Sahlberg's avatar
      cifs: rename and clarify CIFS_ASYNC_OP and CIFS_NO_RESP · 392e1c5d
      Ronnie Sahlberg authored
      The flags were named confusingly.
      CIFS_ASYNC_OP now just means that we will not block waiting for credits
      to become available so we thus rename this to be CIFS_NON_BLOCKING.
      
      Change CIFS_NO_RESP to CIFS_NO_RSP_BUF to clarify that we will actually get a
      response from the server but we will not get/do not want a response buffer.
      
      Delete CIFSSMBNotify. This is an SMB1 function that is not used.
      Signed-off-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      Reviewed-by: default avatarPavel Shilovsky <pshilov@microsoft.com>
      392e1c5d
    • Ronnie Sahlberg's avatar
      cifs: fix credits leak for SMB1 oplock breaks · d69cb728
      Ronnie Sahlberg authored
      For SMB1 oplock breaks we would grab one credit while sending the PDU
      but we would never relese the credit back since we will never receive a
      response to this from the server. Eventuallt this would lead to a hang
      once all credits are leaked.
      
      Fix this by defining a new flag CIFS_NO_SRV_RSP which indicates that there
      is no server response to this command and thus we need to add any credits back
      immediately after sending the PDU.
      
      CC: Stable <stable@vger.kernel.org> #v5.0+
      Signed-off-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
      Reviewed-by: default avatarPavel Shilovsky <pshilov@microsoft.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      d69cb728
    • Steve French's avatar
      smb3: Add protocol structs for change notify support · edf3ef37
      Steve French authored
      Add the SMB3 protocol flag definitions and structs for
      change notify.  Future patches will add the hooks to
      allow it to be invoked from the client.
      
      See MS-FSCC 2.6 and MS-SMB2 2.2.35
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      Reviewed-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
      edf3ef37
    • Ronnie Sahlberg's avatar
      cifs: fix smb3_zero_range for Azure · c425014a
      Ronnie Sahlberg authored
      For zero-range that also extend the file we were sending this as a
      compound of two different operations; a fsctl to set-zero-data for the range
      and then an additional set-info to extend the file size.
      This does not work for Azure since it does not support this fsctl which leads
      to fallocate(FALLOC_FL_ZERO_RANGE) failing but still changing the file size.
      
      To fix this we un-compound this and send these two operations as separate
      commands, firsat one command to set-zero-data for the range and it this
      was successful we proceed to send a set-info to update the file size.
      
      This fixes xfstest generic/469 for Azure servers.
      Signed-off-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      c425014a
    • Ronnie Sahlberg's avatar
      cifs: zero-range does not require the file is sparse · c7fe388d
      Ronnie Sahlberg authored
      Remove the conditional to fail zero-range if the file is not flagged as sparse.
      You can still zero out a range in SMB2 even for non-sparse files.
      
      Tested with stock windows16 server.
      
      Fixes 5 xfstests (033, 149, 155, 180, 349)
      Signed-off-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      c7fe388d
    • Steve French's avatar
      Add new flag on SMB3.1.1 read · 0df7edd9
      Steve French authored
      For compressed read support.  See MS-SMB2 3.1.4.4
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      0df7edd9
    • Ronnie Sahlberg's avatar
      cifs: add fiemap support · 2f3ebaba
      Ronnie Sahlberg authored
      Useful for improved copy performance as well as for
      applications which query allocated ranges of sparse
      files.
      Signed-off-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      2f3ebaba
    • Steve French's avatar
      SMB3: Add defines for new negotiate contexts · d7bef4c4
      Steve French authored
      See the latest MS-SMB2 protocol specification updates.
      These will be needed for implementing compression support
      on the wire for example.
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      d7bef4c4
    • Ronnie Sahlberg's avatar
      cifs: fix bi-directional fsctl passthrough calls · 5242fcb7
      Ronnie Sahlberg authored
      SMB2 Ioctl responses from servers may respond with both the request blob from
      the client followed by the actual reply blob for ioctls that are bi-directional.
      
      In that case we can not assume that the reply blob comes immediately after the
      ioctl response structure.
      
      This fixes FSCTLs such as SMB2:FSCTL_QUERY_ALLOCATED_RANGES
      Signed-off-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      5242fcb7
    • Long Li's avatar
      cifs: smbd: take an array of reqeusts when sending upper layer data · 4739f232
      Long Li authored
      To support compounding, __smb_send_rqst() now sends an array of requests to
      the transport layer.
      Change smbd_send() to take an array of requests, and send them in as few
      packets as possible.
      Signed-off-by: default avatarLong Li <longli@microsoft.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      CC: Stable <stable@vger.kernel.org>
      4739f232
    • Steve French's avatar
      SMB3: Add handling for different FSCTL access flags · 46e66619
      Steve French authored
      DesiredAccess field in SMB3 open request needs
      to be set differently for READ vs. WRITE ioctls
      (not just ones that request both).
      
      Originally noticed by Pavel
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      Reviewed-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
      46e66619
    • Ronnie Sahlberg's avatar
      cifs: Add support for FSCTL passthrough that write data to the server · efac779b
      Ronnie Sahlberg authored
      Add support to pass a blob to the server in FSCTL passthrough.
      Signed-off-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      efac779b
    • Jeff Layton's avatar
      cifs: remove superfluous inode_lock in cifs_{strict_}fsync · 0ae3fa4d
      Jeff Layton authored
      Originally, filemap_write_and_wait took the i_mutex internally, but
      commit 02c24a82 pushed the mutex acquisition into the individual
      fsync routines, leaving it up to the subsystem maintainers to remove
      it if it wasn't needed.
      
      For cifs, I see no reason to take the inode_lock here. All of the
      operations inside that lock are protected in other ways.
      Signed-off-by: default avatarJeff Layton <jlayton@kernel.org>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      Acked-by: default avatarPavel Shilovsky <pshilov@microsoft.com>
      0ae3fa4d
    • Long Li's avatar
      cifs: Call MID callback before destroying transport · 214bab44
      Long Li authored
      When transport is being destroyed, it's possible that some processes may
      hold memory registrations that need to be deregistred.
      
      Call them first so nobody is using transport resources, and it can be
      destroyed.
      Signed-off-by: default avatarLong Li <longli@microsoft.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      214bab44
    • Long Li's avatar
      cifs: smbd: Retry on memory registration failure · b7972092
      Long Li authored
      Memory registration failure doesn't mean this I/O has failed, it means the
      transport is hitting I/O error or needs reconnect. This error is not from
      the server.
      
      Indicate this error to upper layer, and let upper layer decide how to
      reconnect and proceed with this I/O.
      Signed-off-by: default avatarLong Li <longli@microsoft.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      b7972092
    • Long Li's avatar
      cifs: smbd: Indicate to retry on transport sending failure · 62fdf670
      Long Li authored
      Failure to send a packet doesn't mean it's a permanent failure, it can't be
      returned to user process. This I/O should be retried or failed based on
      server packet response and transport health. This logic is handled by the
      upper layer.
      
      Give this decision to upper layer.
      Signed-off-by: default avatarLong Li <longli@microsoft.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      62fdf670
    • Long Li's avatar
      cifs: smbd: Return EINTR when interrupted · 98e0d408
      Long Li authored
      When packets are waiting for outbound I/O and interrupted, return the
      proper error code to user process.
      Signed-off-by: default avatarLong Li <longli@microsoft.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      98e0d408
    • Long Li's avatar
      cifs: smbd: Don't destroy transport on RDMA disconnect · e8b3bfe9
      Long Li authored
      Now upper layer is handling the transport shutdown and reconnect, remove
      the code that handling transport shutdown on RDMA disconnect.
      Signed-off-by: default avatarLong Li <longli@microsoft.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      e8b3bfe9
    • Long Li's avatar
      smbd: Make upper layer decide when to destroy the transport · 050b8c37
      Long Li authored
      On transport recoonect, upper layer CIFS code destroys the current
      transport and then recoonect. This code path is not used by SMBD, in that
      SMBD destroys its transport on RDMA disconnect notification independent of
      CIFS upper layer behavior.
      
      This approach adds some costs to SMBD layer to handle transport shutdown
      and restart, and to deal with several racing conditions on reconnecting
      transport.
      
      Re-work this code path by introducing a new smbd_destroy. This function is
      called form upper layer to ask SMBD to destroy the transport. SMBD will no
      longer need to destroy the transport by itself while worrying about data
      transfer is in progress. The upper layer guarantees the transport is
      locked.
      
      change log:
      v2: fix build errors when CONFIG_CIFS_SMB_DIRECT is not configured
      Signed-off-by: default avatarLong Li <longli@microsoft.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      050b8c37
    • Steve French's avatar
      SMB3: update comment to clarify enumerating snapshots · 973189ab
      Steve French authored
      Trivial update to comment suggested by Pavel.
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      973189ab
    • Aurelien Aptel's avatar
      CIFS: check CIFS_MOUNT_NO_DFS when trying to reuse existing sb · d070f9dd
      Aurelien Aptel authored
      if we mount A then mount A again with nodfs, we shouldn't reuse the
      superblock. document the purpose of the defines as well.
      
      there are most likely more flags that needs to be added to this mask,
      in fact the logic to find them should be which flag should
      be *ignored* when trying to reuse an existing sb.
      Signed-off-by: default avatarAurelien Aptel <aaptel@suse.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      d070f9dd
    • Kenneth D'souza's avatar
      CIFS: Show locallease in /proc/mounts for cifs shares mounted with locallease feature. · c8b6ac1a
      Kenneth D'souza authored
      Missing parameter that should be displayed in the mount list
      Reviewed-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
      Signed-off-by: default avatarKenneth D'souza <kdsouza@redhat.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      c8b6ac1a
    • Paulo Alcantara (SUSE)'s avatar
      cifs: Fix DFS cache refresher for DFS links · 5072010c
      Paulo Alcantara (SUSE) authored
      As per MS-DFSC, when a DFS cache entry is expired and it is a DFS
      link, then a new DFS referral must be sent to root server in order to
      refresh the expired entry.
      
      This patch ensures that all new DFS referrals for refreshing the cache
      are sent to DFS root.
      Signed-off-by: default avatarPaulo Alcantara (SUSE) <paulo@paulo.ac>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      5072010c
    • Sergey Senozhatsky's avatar
      cifs: don't use __constant_cpu_to_le32() · f5307104
      Sergey Senozhatsky authored
      A trivial patch.
      
      cpu_to_le32() is capable enough to detect __builtin_constant_p()
      and to use an appropriate compile time ___constant_swahb32()
      function.
      
      So we can use cpu_to_le32() instead of __constant_cpu_to_le32().
      Signed-off-by: default avatarSergey Senozhatsky <sergey.senozhatsky@gmail.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      f5307104
    • Steve French's avatar
      SMB3: Track total time spent on roundtrips for each SMB3 command · 433b8dd7
      Steve French authored
      Also track minimum and maximum time by command in /proc/fs/cifs/Stats
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      433b8dd7
    • Linus Torvalds's avatar
      Merge branch 'parisc-5.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · d3511f53
      Linus Torvalds authored
      Pull parisc updates from Helge Deller:
       "Many great new features, fixes and optimizations, including:
      
         - Convert page table updates to use per-pagetable spinlocks which
           overall improves performance on SMP machines a lot, by Mikulas
           Patocka
      
         - Kernel debugger (KGDB) support, by Sven Schnelle
      
         - KPROBES support, by Sven Schnelle
      
         - Lots of TLB lock/flush improvements, by Dave Anglin
      
         - Drop DISCONTIGMEM and switch to SPARSEMEM
      
         - Added JUMP_LABEL, branch runtime-patching support
      
         - Lots of other small speedups and cleanups, e.g. for QEMU, stack
           randomization, avoidance of name clashes, documentation updates,
           etc ..."
      
      * 'parisc-5.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux: (28 commits)
        parisc: Add static branch and JUMP_LABEL feature
        parisc: Use PA_ASM_LEVEL in boot code
        parisc: Rename LEVEL to PA_ASM_LEVEL to avoid name clash with DRBD code
        parisc: Update huge TLB page support to use per-pagetable spinlock
        parisc: Use per-pagetable spinlock
        parisc: Allow live-patching of __meminit functions
        parisc: Add memory barrier to asm pdc and sync instructions
        parisc: Add memory clobber to TLB purges
        parisc: Use ldcw instruction for SMP spinlock release barrier
        parisc: Remove lock code to serialize TLB operations in pacache.S
        parisc: Switch from DISCONTIGMEM to SPARSEMEM
        parisc: enable wide mode early
        parisc: update feature lists
        parisc: Show n/a if product number not available
        parisc: remove unused flags parameter in __patch_text()
        doc: update kprobes supported architecture list
        parisc: Implement kretprobes
        parisc: remove kprobes.h from generic-y
        parisc: Implement kprobes
        parisc: add functions required by KPROBE_EVENTS
        ...
      d3511f53
    • Linus Torvalds's avatar
      Merge tag 'audit-pr-20190507' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit · 02aff8db
      Linus Torvalds authored
      Pull audit updates from Paul Moore:
       "We've got a reasonably broad set of audit patches for the v5.2 merge
        window, the highlights are below:
      
         - The biggest change, and the source of all the arch/* changes, is
           the patchset from Dmitry to help enable some of the work he is
           doing around PTRACE_GET_SYSCALL_INFO.
      
           To be honest, including this in the audit tree is a bit of a
           stretch, but it does help move audit a little further along towards
           proper syscall auditing for all arches, and everyone else seemed to
           agree that audit was a "good" spot for this to land (or maybe they
           just didn't want to merge it? dunno.).
      
         - We can now audit time/NTP adjustments.
      
         - We continue the work to connect associated audit records into a
           single event"
      
      * tag 'audit-pr-20190507' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit: (21 commits)
        audit: fix a memory leak bug
        ntp: Audit NTP parameters adjustment
        timekeeping: Audit clock adjustments
        audit: purge unnecessary list_empty calls
        audit: link integrity evm_write_xattrs record to syscall event
        syscall_get_arch: add "struct task_struct *" argument
        unicore32: define syscall_get_arch()
        Move EM_UNICORE to uapi/linux/elf-em.h
        nios2: define syscall_get_arch()
        nds32: define syscall_get_arch()
        Move EM_NDS32 to uapi/linux/elf-em.h
        m68k: define syscall_get_arch()
        hexagon: define syscall_get_arch()
        Move EM_HEXAGON to uapi/linux/elf-em.h
        h8300: define syscall_get_arch()
        c6x: define syscall_get_arch()
        arc: define syscall_get_arch()
        Move EM_ARCOMPACT and EM_ARCV2 to uapi/linux/elf-em.h
        audit: Make audit_log_cap and audit_copy_inode static
        audit: connect LOGIN record to its syscall record
        ...
      02aff8db
    • Linus Torvalds's avatar
      Merge tag 'selinux-pr-20190507' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux · f72dae20
      Linus Torvalds authored
      Pull selinux updates from Paul Moore:
       "We've got a few SELinux patches for the v5.2 merge window, the
        highlights are below:
      
         - Add LSM hooks, and the SELinux implementation, for proper labeling
           of kernfs. While we are only including the SELinux implementation
           here, the rest of the LSM folks have given the hooks a thumbs-up.
      
         - Update the SELinux mdp (Make Dummy Policy) script to actually work
           on a modern system.
      
         - Disallow userspace to change the LSM credentials via
           /proc/self/attr when the task's credentials are already overridden.
      
           The change was made in procfs because all the LSM folks agreed this
           was the Right Thing To Do and duplicating it across each LSM was
           going to be annoying"
      
      * tag 'selinux-pr-20190507' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux:
        proc: prevent changes to overridden credentials
        selinux: Check address length before reading address family
        kernfs: fix xattr name handling in LSM helpers
        MAINTAINERS: update SELinux file patterns
        selinux: avoid uninitialized variable warning
        selinux: remove useless assignments
        LSM: lsm_hooks.h - fix missing colon in docstring
        selinux: Make selinux_kernfs_init_security static
        kernfs: initialize security of newly created nodes
        selinux: implement the kernfs_init_security hook
        LSM: add new hook for kernfs node initialization
        kernfs: use simple_xattrs for security attributes
        selinux: try security xattr after genfs for kernfs filesystems
        kernfs: do not alloc iattrs in kernfs_xattr_get
        kernfs: clean up struct kernfs_iattrs
        scripts/selinux: fix build
        selinux: use kernel linux/socket.h for genheaders and mdp
        scripts/selinux: modernize mdp
      f72dae20
    • Linus Torvalds's avatar
      Merge branch 'stable/for-linus-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/swiotlb · 498e8631
      Linus Torvalds authored
      Pull swiotlb updates from Konrad Rzeszutek Wilk:
       "Cleanups in the swiotlb code and extra debugfs knobs to help with the
        field diagnostics"
      
      * 'stable/for-linus-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/swiotlb:
        swiotlb-xen: ensure we have a single callsite for xen_dma_map_page
        swiotlb-xen: simplify the DMA sync method implementations
        swiotlb-xen: use ->map_page to implement ->map_sg
        swiotlb-xen: make instances match their method names
        swiotlb: save io_tlb_used to local variable before leaving critical section
        swiotlb: dump used and total slots when swiotlb buffer is full
      498e8631
    • Linus Torvalds's avatar
      Merge tag 'for-5.2/libata-20190507' of git://git.kernel.dk/linux-block · e4eaa9ef
      Linus Torvalds authored
      Pull libata updates from Jens Axboe:
       "Just two minor fixes queued up for 5.2, adding support for two
        different platforms to ahci"
      
      * tag 'for-5.2/libata-20190507' of git://git.kernel.dk/linux-block:
        ahci: qoriq: add ls1028a platforms support
        ahci: qoriq: add lx2160 platforms support
      e4eaa9ef
    • Linus Torvalds's avatar
      Merge tag 'for-5.2/io_uring-20190507' of git://git.kernel.dk/linux-block · 52ae2456
      Linus Torvalds authored
      Pull io_uring updates from Jens Axboe:
       "Set of changes/improvements for io_uring. This contains:
      
         - Fix of a shadowed variable (Colin)
      
         - Add support for draining commands (me)
      
         - Add support for sync_file_range() (me)
      
         - Add eventfd support (me)
      
         - cpu_online() fix (Shenghui)
      
         - Removal of a redundant ->error assignment (Stefan)"
      
      * tag 'for-5.2/io_uring-20190507' of git://git.kernel.dk/linux-block:
        io_uring: use cpu_online() to check p->sq_thread_cpu instead of cpu_possible()
        io_uring: fix shadowed variable ret return code being not checked
        req->error only used for iopoll
        io_uring: add support for eventfd notifications
        io_uring: add support for IORING_OP_SYNC_FILE_RANGE
        fs: add sync_file_range() helper
        io_uring: add support for marking commands as draining
      52ae2456
    • Linus Torvalds's avatar
      Merge tag 'for-5.2/block-20190507' of git://git.kernel.dk/linux-block · 67a24222
      Linus Torvalds authored
      Pull block updates from Jens Axboe:
       "Nothing major in this series, just fixes and improvements all over the
        map. This contains:
      
         - Series of fixes for sed-opal (David, Jonas)
      
         - Fixes and performance tweaks for BFQ (via Paolo)
      
         - Set of fixes for bcache (via Coly)
      
         - Set of fixes for md (via Song)
      
         - Enabling multi-page for passthrough requests (Ming)
      
         - Queue release fix series (Ming)
      
         - Device notification improvements (Martin)
      
         - Propagate underlying device rotational status in loop (Holger)
      
         - Removal of mtip32xx trim support, which has been disabled for years
           (Christoph)
      
         - Improvement and cleanup of nvme command handling (Christoph)
      
         - Add block SPDX tags (Christoph)
      
         - Cleanup/hardening of bio/bvec iteration (Christoph)
      
         - A few NVMe pull requests (Christoph)
      
         - Removal of CONFIG_LBDAF (Christoph)
      
         - Various little fixes here and there"
      
      * tag 'for-5.2/block-20190507' of git://git.kernel.dk/linux-block: (164 commits)
        block: fix mismerge in bvec_advance
        block: don't drain in-progress dispatch in blk_cleanup_queue()
        blk-mq: move cancel of hctx->run_work into blk_mq_hw_sysfs_release
        blk-mq: always free hctx after request queue is freed
        blk-mq: split blk_mq_alloc_and_init_hctx into two parts
        blk-mq: free hw queue's resource in hctx's release handler
        blk-mq: move cancel of requeue_work into blk_mq_release
        blk-mq: grab .q_usage_counter when queuing request from plug code path
        block: fix function name in comment
        nvmet: protect discovery change log event list iteration
        nvme: mark nvme_core_init and nvme_core_exit static
        nvme: move command size checks to the core
        nvme-fabrics: check more command sizes
        nvme-pci: check more command sizes
        nvme-pci: remove an unneeded variable initialization
        nvme-pci: unquiesce admin queue on shutdown
        nvme-pci: shutdown on timeout during deletion
        nvme-pci: fix psdt field for single segment sgls
        nvme-multipath: don't print ANA group state by default
        nvme-multipath: split bios with the ns_head bio_set before submitting
        ...
      67a24222
    • Linus Torvalds's avatar
      Merge tag 'leds-for-5.2-rc1' of... · 8b35ad62
      Linus Torvalds authored
      Merge tag 'leds-for-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds
      
      Pull LED updates from Jacek Anaszewski:
       "LED core fixes and improvements:
      
            - avoid races with workqueue
            - Kconfig: pedantic cleanup
            - small fixes for Flash class description
      
        leds-lt3593:
      
            - remove unneeded assignment in lt3593_led_probe
            - drop pdata handling code
      
        leds-blinkm:
      
            - clean up double assignment to data->i2c_addr
      
        leds-pca955x, leds-pca963x:
      
            - revert ACPI support, as it turned out that there is no evidence
                of officially registered ACPI IDs for these devices.
            - make use of device property API
      
        leds-as3645a:
      
            - switch to fwnode property API
      
        LED related addition to ACPI documentation:
      
            - document how to refer to LEDs from remote nodes
      
        LED related fix to ALSA line6/toneport driver:
      
            - avoid polluting led_* namespace
      
        And lm3532 driver relocation from MFD to LED subsystem, accompanied by
        various improvements and optimizations; it entails also a change in
        omap4-droid4-xt894.dts:
      
            - leds: lm3532: Introduce the lm3532 LED driver
            - mfd: ti-lmu: Remove LM3532 backlight driver references
            - ARM: dts: omap4-droid4: Update backlight dt properties
            - dt: lm3532: Add lm3532 dt doc and update ti_lmu doc"
      
      * tag 'leds-for-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds:
        leds: avoid races with workqueue
        ALSA: line6: Avoid polluting led_* namespace
        leds: lm3532: Introduce the lm3532 LED driver
        mfd: ti-lmu: Remove LM3532 backlight driver references
        ARM: dts: omap4-droid4: Update backlight dt properties
        dt: lm3532: Add lm3532 dt doc and update ti_lmu doc
        leds: Small fixes for Flash class description
        leds: blinkm: clean up double assignment to data->i2c_addr
        leds: pca963x: Make use of device property API
        leds: pca955x: Make use of device property API
        leds: lt3593: Remove unneeded assignment in lt3593_led_probe
        leds: lt3593: drop pdata handling code
        leds: pca955x: Revert "Add ACPI support"
        leds: pca963x: Revert "Add ACPI support"
        drivers: leds: Kconfig: pedantic cleanups
        ACPI: Document how to refer to LEDs from remote nodes
        leds: as3645a: Switch to fwnode property API
      8b35ad62
  2. 07 May, 2019 6 commits
    • Linus Torvalds's avatar
      Merge tag 'char-misc-5.2-rc1-part2' of... · f678d6da
      Linus Torvalds authored
      Merge tag 'char-misc-5.2-rc1-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
      
      Pull char/misc update part 2 from Greg KH:
       "Here is the "real" big set of char/misc driver patches for 5.2-rc1
      
        Loads of different driver subsystem stuff in here, all over the places:
         - thunderbolt driver updates
         - habanalabs driver updates
         - nvmem driver updates
         - extcon driver updates
         - intel_th driver updates
         - mei driver updates
         - coresight driver updates
         - soundwire driver cleanups and updates
         - fastrpc driver updates
         - other minor driver updates
         - chardev minor fixups
      
        Feels like this tree is getting to be a dumping ground of "small
        driver subsystems" these days. Which is fine with me, if it makes
        things easier for those subsystem maintainers.
      
        All of these have been in linux-next for a while with no reported
        issues"
      
      * tag 'char-misc-5.2-rc1-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (255 commits)
        intel_th: msu: Add current window tracking
        intel_th: msu: Add a sysfs attribute to trigger window switch
        intel_th: msu: Correct the block wrap detection
        intel_th: Add switch triggering support
        intel_th: gth: Factor out trace start/stop
        intel_th: msu: Factor out pipeline draining
        intel_th: msu: Switch over to scatterlist
        intel_th: msu: Replace open-coded list_{first,last,next}_entry variants
        intel_th: Only report useful IRQs to subdevices
        intel_th: msu: Start handling IRQs
        intel_th: pci: Use MSI interrupt signalling
        intel_th: Communicate IRQ via resource
        intel_th: Add "rtit" source device
        intel_th: Skip subdevices if their MMIO is missing
        intel_th: Rework resource passing between glue layers and core
        intel_th: SPDX-ify the documentation
        intel_th: msu: Fix single mode with IOMMU
        coresight: funnel: Support static funnel
        dt-bindings: arm: coresight: Unify funnel DT binding
        coresight: replicator: Add new device id for static replicator
        ...
      f678d6da
    • Linus Torvalds's avatar
      Merge tag 'char-misc-5.2-rc1-part1' of... · 2310673c
      Linus Torvalds authored
      Merge tag 'char-misc-5.2-rc1-part1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
      
      Pull char/misc update part 1 from Greg KH:
       "This contains only a small number of bugfixes that would have gone to
        you for 5.1-rc8 if that had happened, but instead I let them sit in
        linux-next for an extra week just "to be sure".
      
        The "big" patch here is for hyper-v, fixing a bug in their sysfs files
        that could cause big problems. The others are all small fixes,
        resolving reported issues that showed up in 5.1-rcs, plus some odd
        'static' cleanups for the phy drivers that really should have waited
        for -rc1. Most of these are tagged for the stable trees, so 5.1 will
        pick them up.
      
        All of these have been in linux-next for a while, with no reported
        issues"
      
      * tag 'char-misc-5.2-rc1-part1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
        misc: rtsx: Fixed rts5260 power saving parameter and sd glitch
        binder: take read mode of mmap_sem in binder_alloc_free_page()
        intel_th: pci: Add Comet Lake support
        stm class: Fix channel bitmap on 32-bit systems
        stm class: Fix channel free in stm output free path
        phy: sun4i-usb: Make sure to disable PHY0 passby for peripheral mode
        phy: fix platform_no_drv_owner.cocci warnings
        phy: mapphone-mdm6600: add gpiolib dependency
        phy: ti: usb2: fix OMAP_CONTROL_PHY dependency
        phy: allwinner: allow compile testing
        phy: qcom-ufs: Make ufs_qcom_phy_disable_iface_clk static
        phy: rockchip-typec: Make usb3_pll_cfg and dp_pll_cfg static
        phy: phy-twl4030-usb: Fix cable state handling
        Drivers: hv: vmbus: Remove the undesired put_cpu_ptr() in hv_synic_cleanup()
        Drivers: hv: vmbus: Fix race condition with new ring_buffer_info mutex
        Drivers: hv: vmbus: Set ring_info field to 0 and remove memset
        Drivers: hv: vmbus: Refactor chan->state if statement
        Drivers: hv: vmbus: Expose monitor data only when monitor pages are used
      2310673c
    • Linus Torvalds's avatar
      Merge tag 'staging-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · e0dccbdf
      Linus Torvalds authored
      Pull staging / IIO driver updates from Greg KH:
       "Here is the big staging and iio driver update for 5.2-rc1.
      
        Lots of tiny fixes all over the staging and IIO driver trees here,
        along with some new IIO drivers.
      
        The "counter" subsystem was added in here as well, as it is needed by
        the IIO drivers and subsystem.
      
        Also we ended up deleting two drivers, making this pull request remove
        a few hundred thousand lines of code, always a nice thing to see. Both
        of the drivers removed have been replaced with "real" drivers in their
        various subsystem directories, and they will be coming to you from
        those locations during this merge window.
      
        There are some core vt/selection changes in here, that was due to some
        cleanups needed for the speakup fixes. Those have all been acked by
        the various subsystem maintainers (i.e. me), so those are ok.
      
        We also added a few new drivers, for some odd hardware, giving new
        developers plenty to work on with basic coding style cleanups to come
        in the near future.
      
        Other than that, nothing unusual here.
      
        All of these have been in linux-next for a while with no reported
        issues, other than an odd gcc warning for one of the new drivers that
        should be fixed up soon"
      
      [ I fixed up the warning myself  - Linus ]
      
      * tag 'staging-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (663 commits)
        staging: kpc2000: kpc_spi: Fix build error for {read,write}q
        Staging: rtl8192e: Remove extra space before break statement
        Staging: rtl8192u: ieee80211: Fix if-else indentation warning
        Staging: rtl8192u: ieee80211: Fix indentation errors by removing extra spaces
        staging: most: cdev: fix chrdev_region leak in mod_exit
        staging: wlan-ng: Fix improper SPDX comment style
        staging: rtl8192u: ieee80211: Resolve ERROR reported by checkpatch
        staging: vc04_services: bcm2835-camera: Compress two lines into one line
        staging: rtl8723bs: core: Use !x in place of NULL comparison.
        staging: rtl8723bs: core: Prefer using the BIT Macro.
        staging: fieldbus: anybus-s: fix wait_for_completion_timeout return handling
        staging: kpc2000: fix up build problems with readq()
        staging: rtlwifi: move remaining phydm .h files
        staging: rtlwifi: strip down phydm .h files
        staging: rtlwifi: delete the staging driver
        staging: fieldbus: anybus-s: rename bus id field to avoid confusion
        staging: fieldbus: anybus-s: keep device bus id in bus endianness
        Staging: sm750fb: Change *array into *const array
        staging: rtl8192u: ieee80211: Fix spelling mistake
        staging: rtl8192u: ieee80211: Replace bit shifting with BIT macro
        ...
      e0dccbdf
    • Linus Torvalds's avatar
      Merge tag 'driver-core-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core · cf482a49
      Linus Torvalds authored
      Pull driver core/kobject updates from Greg KH:
       "Here is the "big" set of driver core patches for 5.2-rc1
      
        There are a number of ACPI patches in here as well, as Rafael said
        they should go through this tree due to the driver core changes they
        required. They have all been acked by the ACPI developers.
      
        There are also a number of small subsystem-specific changes in here,
        due to some changes to the kobject core code. Those too have all been
        acked by the various subsystem maintainers.
      
        As for content, it's pretty boring outside of the ACPI changes:
         - spdx cleanups
         - kobject documentation updates
         - default attribute groups for kobjects
         - other minor kobject/driver core fixes
      
        All have been in linux-next for a while with no reported issues"
      
      * tag 'driver-core-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (47 commits)
        kobject: clean up the kobject add documentation a bit more
        kobject: Fix kernel-doc comment first line
        kobject: Remove docstring reference to kset
        firmware_loader: Fix a typo ("syfs" -> "sysfs")
        kobject: fix dereference before null check on kobj
        Revert "driver core: platform: Fix the usage of platform device name(pdev->name)"
        init/config: Do not select BUILD_BIN2C for IKCONFIG
        Provide in-kernel headers to make extending kernel easier
        kobject: Improve doc clarity kobject_init_and_add()
        kobject: Improve docs for kobject_add/del
        driver core: platform: Fix the usage of platform device name(pdev->name)
        livepatch: Replace klp_ktype_patch's default_attrs with groups
        cpufreq: schedutil: Replace default_attrs field with groups
        padata: Replace padata_attr_type default_attrs field with groups
        irqdesc: Replace irq_kobj_type's default_attrs field with groups
        net-sysfs: Replace ktype default_attrs field with groups
        block: Replace all ktype default_attrs with groups
        samples/kobject: Replace foo_ktype's default_attrs field with groups
        kobject: Add support for default attribute groups to kobj_type
        driver core: Postpone DMA tear-down until after devres release for probe failure
        ...
      cf482a49
    • Linus Torvalds's avatar
      Merge tag 'mmc-v5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · 01e5d183
      Linus Torvalds authored
      Pull MMC updates from Ulf Hansson:
       "MMC core:
         - Fix a few memoryleaks
         - Minor improvements to the card initialization sequence
         - Partially support sleepy GPIO controllers for pwrseq eMMC
      
        MMC host:
         - alcor: Work with multiple-entry sglists
         - alcor: Enable DMA for writes
         - meson-gx: Improve tuning support
         - meson-gx: Avoid clock glitch when switching to DDR modes
         - meson-gx: Disable unreliable HS400 mode
         - mmci: Minor updates for support of HW busy detection
         - mmci: Support data transfers for the stm32_sdmmc variant
         - mmci: Restructure code to better support different variants
         - mtk-sd: Add support for version found on MT7620 family SOCs
         - mtk-sd: Add support for the MT8516 version
         - mtk-sd: Add Chaotian Jing as the maintainer
         - sdhci: Reorganize request-code to convert from tasklet to workqueue
         - sdhci_am654: Stabilize support for lower speed modes
         - sdhci-esdhc-imx: Add HS400 support for iMX7ULP
         - sdhci-esdhc-imx: Add support for iMX7ULP version
         - sdhci-of-arasan: Allow to disable DCMDs via DT for CQE
         - sdhci-of-esdhc: Add support for the ls1028a version
         - sdhci-of-esdhc: Several fixups for errata
         - sdhci-pci: Fix BYT OCP setting
         - sdhci-pci: Add support for Intel CML
         - sdhci-tegra: Add support for system suspend/resume
         - sdhci-tegra: Add CQE support for Tegra186 WAR
         - sdhci-tegra: Add support for Tegra194
         - sdhci-tegra: Update HW tuning process
      
        MEMSTICK:
         - I volunteered to help as a maintainer for the memstick subsystem,
           which is reflected by an update to the MAINTAINERS file. Changes
           are funneled through my MMC git and we will use the linux-mmc
           mailing list.
      
        MEMSTICK host:
         - A few minor cleanups"
      
      * tag 'mmc-v5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc: (87 commits)
        mmc: sdhci-pci: Fix BYT OCP setting
        dt-bindings: mmc: add DT bindings for ls1028a eSDHC host controller
        mmc: alcor: Drop pointer to mmc_host from alcor_sdmmc_host
        mmc: mtk-sd: select REGULATOR
        mmc: mtk-sd: enable internal card-detect logic.
        mmc: mtk-sd: add support for config found in mt7620 family SOCs.
        mmc: mtk-sd: don't hard-code interrupt trigger type
        mmc: core: Fix tag set memory leak
        dt-bindings: mmc: Add support for MT8516 to mtk-sd
        mmc: mmci: Prevent polling for busy detection in IRQ context
        mmc: mmci: Cleanup mmci_cmd_irq() for busy detect
        mmc: usdhi6rol0: mark expected switch fall-throughs
        mmc: core: Verify SD bus width
        mmc: sdhci-esdhc-imx: Add HS400 support for iMX7ULP
        mmc: sdhci-esdhc-imx: add pm_qos to interact with cpuidle
        dt-bindings: mmc: fsl-imx-esdhc: add imx7ulp compatible string
        mmc: meson-gx: add signal resampling tuning
        mmc: meson-gx: remove Rx phase tuning
        mmc: meson-gx: avoid clock glitch when switching to DDR modes
        mmc: meson-gx: disable HS400
        ...
      01e5d183
    • Linus Torvalds's avatar
      Merge tag 'Wimplicit-fallthrough-5.2-rc1' of... · b4b52b88
      Linus Torvalds authored
      Merge tag 'Wimplicit-fallthrough-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux
      
      Pull Wimplicit-fallthrough updates from Gustavo A. R. Silva:
       "Mark switch cases where we are expecting to fall through.
      
        This is part of the ongoing efforts to enable -Wimplicit-fallthrough.
      
        Most of them have been baking in linux-next for a whole development
        cycle. And with Stephen Rothwell's help, we've had linux-next
        nag-emails going out for newly introduced code that triggers
        -Wimplicit-fallthrough to avoid gaining more of these cases while we
        work to remove the ones that are already present.
      
        We are getting close to completing this work. Currently, there are
        only 32 of 2311 of these cases left to be addressed in linux-next. I'm
        auditing every case; I take a look into the code and analyze it in
        order to determine if I'm dealing with an actual bug or a false
        positive, as explained here:
      
            https://lore.kernel.org/lkml/c2fad584-1705-a5f2-d63c-824e9b96cf50@embeddedor.com/
      
        While working on this, I've found and fixed the several missing
        break/return bugs, some of them introduced more than 5 years ago.
      
        Once this work is finished, we'll be able to universally enable
        "-Wimplicit-fallthrough" to avoid any of these kinds of bugs from
        entering the kernel again"
      
      * tag 'Wimplicit-fallthrough-5.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux: (27 commits)
        memstick: mark expected switch fall-throughs
        drm/nouveau/nvkm: mark expected switch fall-throughs
        NFC: st21nfca: Fix fall-through warnings
        NFC: pn533: mark expected switch fall-throughs
        block: Mark expected switch fall-throughs
        ASN.1: mark expected switch fall-through
        lib/cmdline.c: mark expected switch fall-throughs
        lib: zstd: Mark expected switch fall-throughs
        scsi: sym53c8xx_2: sym_nvram: Mark expected switch fall-through
        scsi: sym53c8xx_2: sym_hipd: mark expected switch fall-throughs
        scsi: ppa: mark expected switch fall-through
        scsi: osst: mark expected switch fall-throughs
        scsi: lpfc: lpfc_scsi: Mark expected switch fall-throughs
        scsi: lpfc: lpfc_nvme: Mark expected switch fall-through
        scsi: lpfc: lpfc_nportdisc: Mark expected switch fall-through
        scsi: lpfc: lpfc_hbadisc: Mark expected switch fall-throughs
        scsi: lpfc: lpfc_els: Mark expected switch fall-throughs
        scsi: lpfc: lpfc_ct: Mark expected switch fall-throughs
        scsi: imm: mark expected switch fall-throughs
        scsi: csiostor: csio_wr: mark expected switch fall-through
        ...
      b4b52b88