1. 13 3月, 2021 1 次提交
  2. 12 3月, 2021 3 次提交
  3. 11 3月, 2021 10 次提交
  4. 10 3月, 2021 3 次提交
  5. 06 3月, 2021 5 次提交
    • X
      blk-cgroup: Fix the recursive blkg rwstat · 4f44657d
      Xunlei Pang 提交于
      The current blkio.throttle.io_service_bytes_recursive doesn't
      work correctly.
      
      As an example, for the following blkcg hierarchy:
       (Made 1GB READ in test1, 512MB READ in test2)
           test
          /    \
       test1   test2
      
      $ head -n 1 test/test1/blkio.throttle.io_service_bytes_recursive
      8:0 Read 1073684480
      $ head -n 1 test/test2/blkio.throttle.io_service_bytes_recursive
      8:0 Read 537448448
      $ head -n 1 test/blkio.throttle.io_service_bytes_recursive
      8:0 Read 537448448
      
      Clearly, above data of "test" reflects "test2" not "test1"+"test2".
      
      Do the correct summary in blkg_rwstat_recursive_sum().
      Signed-off-by: NXunlei Pang <xlpang@linux.alibaba.com>
      Signed-off-by: NJens Axboe <axboe@kernel.dk>
      4f44657d
    • S
      s390/dasd: fix hanging IO request during DASD driver unbind · 66f669a2
      Stefan Haberland 提交于
      Prevent that an IO request is build during device shutdown initiated by
      a driver unbind. This request will never be able to be processed or
      canceled and will hang forever. This will lead also to a hanging unbind.
      
      Fix by checking not only if the device is in READY state but also check
      that there is no device offline initiated before building a new IO request.
      
      Fixes: e443343e ("s390/dasd: blk-mq conversion")
      
      Cc: <stable@vger.kernel.org> # v4.14+
      Signed-off-by: NStefan Haberland <sth@linux.ibm.com>
      Tested-by: NBjoern Walk <bwalk@linux.ibm.com>
      Reviewed-by: NJan Hoeppner <hoeppner@linux.ibm.com>
      Signed-off-by: NJens Axboe <axboe@kernel.dk>
      66f669a2
    • S
      s390/dasd: fix hanging DASD driver unbind · 7d365bd0
      Stefan Haberland 提交于
      In case of an unbind of the DASD device driver the function
      dasd_generic_remove() is called which shuts down the device.
      Among others this functions removes the int_handler from the cdev.
      During shutdown the device cancels all outstanding IO requests and waits
      for completion of the clear request.
      Unfortunately the clear interrupt will never be received when there is no
      interrupt handler connected.
      
      Fix by moving the int_handler removal after the call to the state machine
      where no request or interrupt is outstanding.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NStefan Haberland <sth@linux.ibm.com>
      Tested-by: NBjoern Walk <bwalk@linux.ibm.com>
      Reviewed-by: NJan Hoeppner <hoeppner@linux.ibm.com>
      Signed-off-by: NJens Axboe <axboe@kernel.dk>
      7d365bd0
    • J
      block: Try to handle busy underlying device on discard · 56887cff
      Jan Kara 提交于
      Commit 384d87ef ("block: Do not discard buffers under a mounted
      filesystem") made paths issuing discard or zeroout requests to the
      underlying device try to grab block device in exclusive mode. If that
      failed we returned EBUSY to userspace. This however caused unexpected
      fallout in userspace where e.g. FUSE filesystems issue discard requests
      from userspace daemons although the device is open exclusively by the
      kernel. Also shrinking of logical volume by LVM issues discard requests
      to a device which may be claimed exclusively because there's another LV
      on the same PV. So to avoid these userspace regressions, fall back to
      invalidate_inode_pages2_range() instead of returning EBUSY to userspace
      and return EBUSY only of that call fails as well (meaning that there's
      indeed someone using the particular device range we are trying to
      discard).
      
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=211167
      Fixes: 384d87ef ("block: Do not discard buffers under a mounted filesystem")
      CC: stable@vger.kernel.org
      Signed-off-by: NJan Kara <jack@suse.cz>
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NJens Axboe <axboe@kernel.dk>
      56887cff
    • J
      Merge tag 'nvme-5.12-2021-03-05' of git://git.infradead.org/nvme into block-5.12 · a2b658e4
      Jens Axboe 提交于
      Pull NVMe fixes from Christoph:
      
      "nvme fixes for 5.12:
      
       - more device quirks (Julian Einwag, Zoltán Böszörményi, Pascal Terjan)
       - fix a hwmon error return (Daniel Wagner)
       - fix the keep alive timeout initialization (Martin George)
       - ensure the model_number can't be changed on a used subsystem
         (Max Gurtovoy)"
      
      * tag 'nvme-5.12-2021-03-05' of git://git.infradead.org/nvme:
        nvmet: model_number must be immutable once set
        nvme-fabrics: fix kato initialization
        nvme-hwmon: Return error code when registration fails
        nvme-pci: add quirks for Lexar 256GB SSD
        nvme-pci: mark Kingston SKC2000 as not supporting the deepest power state
        nvme-pci: mark Seagate Nytro XM1440 as QUIRK_NO_NS_DESC_LIST.
      a2b658e4
  6. 05 3月, 2021 6 次提交
  7. 03 3月, 2021 3 次提交
  8. 02 3月, 2021 1 次提交
  9. 01 3月, 2021 8 次提交
    • D
      block: revert "block: fix bd_size_lock use" · 0f472277
      Damien Le Moal 提交于
      With the removal of the skd driver, using IRQ safe locking of a bdev
      bd_size_lock spinlock to protect the bdev inode size is not necessary
      anymore as there is no other known driver using this lock under an IRQ
      disabled context (e.g. calling set_capacity() with IRQ disabled).
      Revert commit 0fe37724 ("block: fix bd_size_lock use") which
      introduced the IRQ safe change.
      Signed-off-by: NDamien Le Moal <damien.lemoal@wdc.com>
      Signed-off-by: NJens Axboe <axboe@kernel.dk>
      0f472277
    • L
      Linux 5.12-rc1 · fe07bfda
      Linus Torvalds 提交于
      fe07bfda
    • L
      Merge tag 'ide-5.11-2021-02-28' of git://git.kernel.dk/linux-block · d346da4a
      Linus Torvalds 提交于
      Pull ide fix from Jens Axboe:
       "This is a leftover fix from 5.11, where I forgot to ship it your way"
      
      * tag 'ide-5.11-2021-02-28' of git://git.kernel.dk/linux-block:
        ide/falconide: Fix module unload
      d346da4a
    • L
      Merge tag 'kbuild-fixes-v5.12' of... · 06d5d309
      Linus Torvalds 提交于
      Merge tag 'kbuild-fixes-v5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
      
      Pull Kbuild fixes from Masahiro Yamada:
      
       - Fix UNUSED_KSYMS_WHITELIST for Clang LTO
      
       - Make -s builds really silent irrespective of V= option
      
       - Fix build error when SUBLEVEL or PATCHLEVEL is empty
      
      * tag 'kbuild-fixes-v5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        kbuild: Fix <linux/version.h> for empty SUBLEVEL or PATCHLEVEL again
        kbuild: make -s option take precedence over V=1
        ia64: remove redundant READELF from arch/ia64/Makefile
        kbuild: do not include include/config/auto.conf from adjust_autoksyms.sh
        kbuild: fix UNUSED_KSYMS_WHITELIST for Clang LTO
        kbuild: lto: add _mcount to list of used symbols
      06d5d309
    • L
      Merge tag 'csky-for-linus-5.12-rc1' of git://github.com/c-sky/csky-linux · cd278456
      Linus Torvalds 提交于
      Pull arch/csky updates from Guo Ren:
       "Features:
         - add new memory layout 2.5G(user):1.5G(kernel)
         - add kmemleak support
         - reconstruct VDSO framework: add VDSO with GENERIC_GETTIMEOFDAY,
           GENERIC_TIME_VSYSCALL, HAVE_GENERIC_VDSO
         - add faulthandler_disabled() check
         - support (fix) swapon
         - add (fix) _PAGE_ACCESSED for default pgprot
         - abort uaccess retries upon fatal signal (from arm)
      
        Fixes and optimizations:
         - fix perf probe failure
         - fix show_regs doesn't contain regs->usp
         - remove custom asm/atomic.h implementation
         - fix barrier design
         - fix futex SMP implementation
         - fix asm/cmpxchg.h with correct ordering barrier
         - cleanup asm/spinlock.h
         - fix PTE global for 2.5:1.5 virtual memory
         - remove prologue of page fault handler in entry.S
         - fix TLB maintenance synchronization problem
         - add show_tlb for CPU_CK860 debug
         - fix FAULT_FLAG_XXX param for handle_mm_fault
         - fix update_mmu_cache called with user io mapping
         - fix do_page_fault parent irq status
         - fix a size determination in gpr_get()
         - pgtable.h: Coding convention
         - kprobe: Fix code in simulate without 'long'
         - fix pfn_valid error with wrong max_mapnr
         - use free_initmem_default() in free_initmem()
         - fix compile error"
      
      * tag 'csky-for-linus-5.12-rc1' of git://github.com/c-sky/csky-linux: (30 commits)
        csky: Fixup compile error
        csky: use free_initmem_default() in free_initmem()
        csky: Fixup pfn_valid error with wrong max_mapnr
        csky: Add VDSO with GENERIC_GETTIMEOFDAY, GENERIC_TIME_VSYSCALL, HAVE_GENERIC_VDSO
        csky: kprobe: Fixup code in simulate without 'long'
        csky: Fixup swapon
        csky: pgtable.h: Coding convention
        csky: Fixup _PAGE_ACCESSED for default pgprot
        csky: remove unused including <linux/version.h>
        csky: Fix a size determination in gpr_get()
        csky: Reconstruct VDSO framework
        csky: mm: abort uaccess retries upon fatal signal
        csky: Sync riscv mm/fault.c for easy maintenance
        csky: Fixup do_page_fault parent irq status
        csky: Add faulthandler_disabled() check
        csky: Fixup update_mmu_cache called with user io mapping
        csky: Fixup FAULT_FLAG_XXX param for handle_mm_fault
        csky: Add show_tlb for CPU_CK860 debug
        csky: Fix TLB maintenance synchronization problem
        csky: Add kmemleak support
        ...
      cd278456
    • L
      Merge tag 'riscv-for-linus-5.12-mw1' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · 7d19ea5e
      Linus Torvalds 提交于
      Pull more RISC-V updates from Palmer Dabbelt:
       "A pair of patches that slipped through the cracks:
      
         - enable CPU hotplug in the defconfigs
      
         - some cleanups to setup_bootmem
      
        There's also a single fix for some randconfig build failures:
      
         - make NUMA depend on SMP"
      
      * tag 'riscv-for-linus-5.12-mw1' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        riscv: Cleanup setup_bootmem()
        RISC-V: Enable CPU Hotplug in defconfigs
        RISC-V: Make NUMA depend on SMP
      7d19ea5e
    • L
      Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 0b311e34
      Linus Torvalds 提交于
      Pull more SCSI updates from James Bottomley:
       "This is a few driver updates (iscsi, mpt3sas) that were still in the
        staging queue when the merge window opened (all committed on or before
        8 Feb) and some small bug fixes which came in during the merge window
        (all committed on 22 Feb)"
      
      * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (30 commits)
        scsi: hpsa: Correct dev cmds outstanding for retried cmds
        scsi: sd: Fix Opal support
        scsi: target: tcmu: Fix memory leak caused by wrong uio usage
        scsi: target: tcmu: Move some functions without code change
        scsi: sd: sd_zbc: Don't pass GFP_NOIO to kvcalloc
        scsi: aic7xxx: Remove unused function pointer typedef ahc_bus_suspend/resume_t
        scsi: bnx2fc: Fix Kconfig warning & CNIC build errors
        scsi: ufs: Fix a duplicate dev quirk number
        scsi: aic79xx: Fix spelling of version
        scsi: target: core: Prevent underflow for service actions
        scsi: target: core: Add cmd length set before cmd complete
        scsi: iscsi: Drop session lock in iscsi_session_chkready()
        scsi: qla4xxx: Use iscsi_is_session_online()
        scsi: libiscsi: Reset max/exp cmdsn during recovery
        scsi: iscsi_tcp: Fix shost can_queue initialization
        scsi: libiscsi: Add helper to calculate max SCSI cmds per session
        scsi: libiscsi: Fix iSCSI host workq destruction
        scsi: libiscsi: Fix iscsi_task use after free()
        scsi: libiscsi: Drop taskqueuelock
        scsi: libiscsi: Fix iscsi_prep_scsi_cmd_pdu() error handling
        ...
      0b311e34
    • L
      Merge tag 'xfs-5.12-merge-6' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · 03dc748b
      Linus Torvalds 提交于
      Pull more xfs updates from Darrick Wong:
       "The most notable fix here prevents premature reuse of freed metadata
        blocks, and adding the ability to detect accidental nested
        transactions, which are not allowed here.
      
         - Restore a disused sysctl control knob that was inadvertently
           dropped during the merge window to avoid fstests regressions.
      
         - Don't speculatively release freed blocks from the busy list until
           we're actually allocating them, which fixes a rare log recovery
           regression.
      
         - Don't nest transactions when scanning for free space.
      
         - Add an idiot^Wmaintainer light to detect nested transactions. ;)"
      
      * tag 'xfs-5.12-merge-6' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        xfs: use current->journal_info for detecting transaction recursion
        xfs: don't nest transactions when scanning for eofblocks
        xfs: don't reuse busy extents on extent trim
        xfs: restore speculative_cow_prealloc_lifetime sysctl
      03dc748b