Skip to content

Commits

Permalink
blksnap-master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Commits on Aug 3, 2023

  1. blk-filter: store a blkfilter in task_struct

    The BIO_FILTERED scheme doesn't work for submitting file I/O from the
    filter drіver to the original device, which we'll soon do.  Replace the
    scheme with a pointer to the blkfilter in the task_struct so that file
    I/O is covered as well.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and SergeiShtepa committed Aug 3, 2023
    Copy the full SHA
    4f4734b View commit details
    Browse the repository at this point in the history
  2. blksnap: don't reopen the original block device

    The original block device is passed to the blkfilter attach callback,
    so use that and propagate it through the tracker to the diff_area.  This
    means the diff_area can't outlive the tracker (it probably shouldn't
    anyway), so take a reference to the tracker in the diff_area.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and SergeiShtepa committed Aug 3, 2023
    Copy the full SHA
    22bd699 View commit details
    Browse the repository at this point in the history
  3. blksnap: use orig_clone_bio for all reads from the original device

    The orig_clone_bio can also be used for the ST_NEW case in addition
    to not having an allocated chunk at all, so do that and simply
    chunk_clone_bio to only deal with the ST_STORAGE case.
    
    Rename both functions to make it clear what they do.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and SergeiShtepa committed Aug 3, 2023
    Copy the full SHA
    0f5869a View commit details
    Browse the repository at this point in the history
  4. blksnap: refactor diff_area_submit_chunk

    Use a switch statement to clearly separate the chunk states and their
    actions.
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Christoph Hellwig authored and SergeiShtepa committed Aug 3, 2023
    Copy the full SHA
    809b00c View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2023

  1. remove struct diff_region

    FYI, in the meantime I have a prep patch to remove
    the diff_region structure.  I think we don't need it, and just adding
    the bdev and sector to the chunk seems to simply things a bit.
    Christoph Hellwig authored and SergeiShtepa committed Jul 26, 2023
    Copy the full SHA
    efa9b85 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2023

  1. refactor the ioctl code

    Use the normal kernel style of switching on the ioctl command, and
    doing a single cast from the integer to a pointer instead of one
    in every handler.
    Christoph Hellwig authored and SergeiShtepa committed Jul 25, 2023
    Copy the full SHA
    ad6641c View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2023

  1. fix _IOR/_IOW

    "_IOW means userland is writing and kernel is reading. _IOR
    means userland is reading and kernel is writing."
    
    Asked-by: Thomas Weißschuh <thomas@t-8ch.de>
    SergeiShtepa committed Jul 21, 2023
    Copy the full SHA
    47d542f View commit details
    Browse the repository at this point in the history
  2. add check disk_live()

    Asked-by: Yu Kuai <yukuai1@huaweicloud.com>
    SergeiShtepa committed Jul 21, 2023
    Copy the full SHA
    0f2ea1f View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2023

  1. Copy the full SHA
    7e37502 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    ebed406 View commit details
    Browse the repository at this point in the history
  3. fix blkfilter_detach() from del_gendisk/delete_partiton and ioctl con…

    …current
    
    Asked-by: Yu Kuai <yukuai1@huaweicloud.com>
    SergeiShtepa committed Jul 20, 2023
    Copy the full SHA
    7b07a29 View commit details
    Browse the repository at this point in the history
  4. added bio_queue_enter() before accessing the filter

    Asked-by: Yu Kuai <yukuai1@huaweicloud.com>
    SergeiShtepa committed Jul 20, 2023
    Copy the full SHA
    a353ca8 View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    5e46b99 View commit details
    Browse the repository at this point in the history
  6. Merge branch 'blksnap-lk6.4-rc2' into blksnap-master

    Conflicts:
    	block/Makefile
    	block/genhd.c
    	block/ioctl.c
    	block/partitions/core.c
    SergeiShtepa committed Jul 20, 2023
    Copy the full SHA
    1c8f54e View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2023

  1. Linux 6.5-rc2

    torvalds committed Jul 16, 2023
    Copy the full SHA
    fdf0eaf View commit details
    Browse the repository at this point in the history
  2. Merge tag 'xtensa-20230716' of https://github.com/jcmvbkbc/linux-xtensa

    Pull xtensa fixes from Max Filippov:
    
     - fix interaction between unaligned exception handler and load/store
       exception handler
    
     - fix parsing ISS network interface specification string
    
     - add comment about etherdev freeing to ISS network driver
    
    * tag 'xtensa-20230716' of https://github.com/jcmvbkbc/linux-xtensa:
      xtensa: fix unaligned and load/store configuration interaction
      xtensa: ISS: fix call to split_if_spec
      xtensa: ISS: add comment about etherdev freeing
    torvalds committed Jul 16, 2023
    Copy the full SHA
    5b8d6e8 View commit details
    Browse the repository at this point in the history
  3. Merge tag 'perf_urgent_for_v6.5_rc2' of git://git.kernel.org/pub/scm/…

    …linux/kernel/git/tip/tip
    
    Pull perf fix from Borislav Petkov:
    
     - Fix a lockdep warning when the event given is the first one, no event
       group exists yet but the code still goes and iterates over event
       siblings
    
    * tag 'perf_urgent_for_v6.5_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      perf/x86: Fix lockdep warning in for_each_sibling_event() on SPR
    torvalds committed Jul 16, 2023
    Copy the full SHA
    1667e63 View commit details
    Browse the repository at this point in the history
  4. Merge tag 'objtool_urgent_for_v6.5_rc2' of git://git.kernel.org/pub/s…

    …cm/linux/kernel/git/tip/tip
    
    Pull objtool fixes from Borislav Petkov:
    
     - Mark copy_iovec_from_user() __noclone in order to prevent gcc from
       doing an inter-procedural optimization and confuse objtool
    
     - Initialize struct elf fully to avoid build failures
    
    * tag 'objtool_urgent_for_v6.5_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      iov_iter: Mark copy_iovec_from_user() noclone
      objtool: initialize all of struct elf
    torvalds committed Jul 16, 2023
    Copy the full SHA
    8a3e4a6 View commit details
    Browse the repository at this point in the history
  5. Merge tag 'sched_urgent_for_v6.5_rc2' of git://git.kernel.org/pub/scm…

    …/linux/kernel/git/tip/tip
    
    Pull scheduler fixes from Borislav Petkov:
    
     - Remove a cgroup from under a polling process properly
    
     - Fix the idle sibling selection
    
    * tag 'sched_urgent_for_v6.5_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      sched/psi: use kernfs polling functions for PSI trigger polling
      sched/fair: Use recent_used_cpu to test p->cpus_ptr
    torvalds committed Jul 16, 2023
    Copy the full SHA
    f61a89c View commit details
    Browse the repository at this point in the history
  6. Merge tag 'pinctrl-v6.5-2' of git://git.kernel.org/pub/scm/linux/kern…

    …el/git/linusw/linux-pinctrl
    
    Pull pin control fixes from Linus Walleij:
     "I'm mostly on vacation but what would vacation be without a few
      critical fixes so people can use their gaming laptops when hiding away
      from the sun (or rain)?
    
       - Fix a really annoying interrupt storm in the AMD driver affecting
         Asus TUF gaming notebooks
    
       - Fix device tree parsing in the Renesas driver"
    
    * tag 'pinctrl-v6.5-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl:
      pinctrl: amd: Unify debounce handling into amd_pinconf_set()
      pinctrl: amd: Drop pull up select configuration
      pinctrl: amd: Use amd_pinconf_set() for all config options
      pinctrl: amd: Only use special debounce behavior for GPIO 0
      pinctrl: renesas: rzg2l: Handle non-unique subnode names
      pinctrl: renesas: rzv2m: Handle non-unique subnode names
    torvalds committed Jul 16, 2023
    Copy the full SHA
    ede950b View commit details
    Browse the repository at this point in the history
  7. Merge tag '6.5-rc1-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6

    Pull smb client fixes from Steve French:
    
     - Two reconnect fixes: important fix to address inFlight count to leak
       (which can leak credits), and fix for better handling a deleted share
    
     - DFS fix
    
     - SMB1 cleanup fix
    
     - deferred close fix
    
    * tag '6.5-rc1-smb3-fixes' of git://git.samba.org/sfrench/cifs-2.6:
      cifs: fix mid leak during reconnection after timeout threshold
      cifs: is_network_name_deleted should return a bool
      smb: client: fix missed ses refcounting
      smb: client: Fix -Wstringop-overflow issues
      cifs: if deferred close is disabled then close files immediately
    torvalds committed Jul 16, 2023
    Copy the full SHA
    fe756ad View commit details
    Browse the repository at this point in the history
  8. Merge tag 'powerpc-6.5-3' of git://git.kernel.org/pub/scm/linux/kerne…

    …l/git/powerpc/linux
    
    Pull powerpc fixes from Michael Ellerman:
    
     - Fix Speculation_Store_Bypass reporting in /proc/self/status on
       Power10
    
     - Fix HPT with 4K pages since recent changes by implementing pmd_same()
    
     - Fix 64-bit native_hpte_remove() to be irq-safe
    
    Thanks to Aneesh Kumar K.V, Nageswara R Sastry, and Russell Currey.
    
    * tag 'powerpc-6.5-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
      powerpc/mm/book3s64/hash/4k: Add pmd_same callback for 4K page size
      powerpc/64e: Fix obtool warnings in exceptions-64e.S
      powerpc/security: Fix Speculation_Store_Bypass reporting on Power10
      powerpc/64s: Fix native_hpte_remove() to be irq-safe
    torvalds committed Jul 16, 2023
    Copy the full SHA
    20edcec View commit details
    Browse the repository at this point in the history
  9. Merge tag 'hardening-v6.5-rc2' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/kees/linux
    
    Pull hardening fixes from Kees Cook:
    
     - Remove LTO-only suffixes from promoted global function symbols
       (Yonghong Song)
    
     - Remove unused .text..refcount section from vmlinux.lds.h (Petr Pavlu)
    
     - Add missing __always_inline to sparc __arch_xchg() (Arnd Bergmann)
    
     - Claim maintainership of string routines
    
    * tag 'hardening-v6.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
      sparc: mark __arch_xchg() as __always_inline
      MAINTAINERS: Foolishly claim maintainership of string routines
      kallsyms: strip LTO-only suffixes from promoted global functions
      vmlinux.lds.h: Remove a reference to no longer used sections .text..refcount
    torvalds committed Jul 16, 2023
    Copy the full SHA
    6eede06 View commit details
    Browse the repository at this point in the history
  10. Merge tag 'probes-fixes-v6.5-rc1-2' of git://git.kernel.org/pub/scm/l…

    …inux/kernel/git/trace/linux-trace
    
    Pull probe fixes from Masami Hiramatsu:
    
     - fprobe: Add a comment why fprobe will be skipped if another kprobe is
       running in fprobe_kprobe_handler().
    
     - probe-events: Fix some issues related to fetch-arguments:
    
        - Fix double counting of the string length for user-string and
          symstr. This will require longer buffer in the array case.
    
        - Fix not to count error code (minus value) for the total used
          length in array argument. This makes the total used length
          shorter.
    
        - Fix to update dynamic used data size counter only if fetcharg uses
          the dynamic size data. This may mis-count the used dynamic data
          size and corrupt data.
    
        - Revert "tracing: Add "(fault)" name injection to kernel probes"
          because that did not work correctly with a bug, and we agreed the
          current '(fault)' output (instead of '"(fault)"' like a string)
          explains what happened more clearly.
    
        - Fix to record 0-length (means fault access) data_loc data in fetch
          function itself, instead of store_trace_args(). If we record an
          array of string, this will fix to save fault access data on each
          entry of the array correctly.
    
    * tag 'probes-fixes-v6.5-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
      tracing/probes: Fix to record 0-length data_loc in fetch_store_string*() if fails
      Revert "tracing: Add "(fault)" name injection to kernel probes"
      tracing/probes: Fix to update dynamic data counter if fetcharg uses it
      tracing/probes: Fix not to count error code to total length
      tracing/probes: Fix to avoid double count of the string length on the array
      fprobes: Add a comment why fprobe_kprobe_handler exits if kprobe is running
    torvalds committed Jul 16, 2023
    Copy the full SHA
    4b4eef5 View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2023

  1. Merge tag 'spi-fix-v6.5-rc1' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/broonie/spi
    
    Pull spi fixes from Mark Brown:
     "A couple of fairly minor driver specific fixes here, plus a bunch of
      maintainership and admin updates. Nothing too remarkable"
    
    * tag 'spi-fix-v6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
      mailmap: add entry for Jonas Gorski
      MAINTAINERS: add myself for spi-bcm63xx
      spi: s3c64xx: clear loopback bit after loopback test
      spi: bcm63xx: fix max prepend length
      MAINTAINERS: Add myself as a maintainer for Microchip SPI
    torvalds committed Jul 15, 2023
    Copy the full SHA
    831fe28 View commit details
    Browse the repository at this point in the history
  2. Merge tag 'regmap-fix-v6.5-rc1' of git://git.kernel.org/pub/scm/linux…

    …/kernel/git/broonie/regmap
    
    Pull regmap fix from Mark Brown:
     "One fix for an out of bounds access in the interupt code here"
    
    * tag 'regmap-fix-v6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap:
      regmap-irq: Fix out-of-bounds access when allocating config buffers
    torvalds committed Jul 15, 2023
    Copy the full SHA
    393ea78 View commit details
    Browse the repository at this point in the history
  3. Merge tag 'iommu-fixes-v6.5-rc1' of git://git.kernel.org/pub/scm/linu…

    …x/kernel/git/joro/iommu
    
    Pull iommu fixes from Joerg Roedel:
    
     - Fix a regression causing a crash on sysfs access of iommu-group
       specific files
    
     - Fix signedness bug in SVA code
    
    * tag 'iommu-fixes-v6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu:
      iommu/sva: Fix signedness bug in iommu_sva_alloc_pasid()
      iommu: Fix crash during syfs iommu_groups/N/type
    torvalds committed Jul 15, 2023
    Copy the full SHA
    82678ab View commit details
    Browse the repository at this point in the history
  4. Merge tag 'x86_urgent_for_6.5_rc2' of git://git.kernel.org/pub/scm/li…

    …nux/kernel/git/tip/tip
    
    Pull x86 CFI fixes from Peter Zijlstra:
     "Fix kCFI/FineIBT weaknesses
    
      The primary bug Alyssa noticed was that with FineIBT enabled function
      prologues have a spurious ENDBR instruction:
    
        __cfi_foo:
    	endbr64
    	subl	$hash, %r10d
    	jz	1f
    	ud2
    	nop
        1:
        foo:
    	endbr64 <--- *sadface*
    
      This means that any indirect call that fails to target the __cfi
      symbol and instead targets (the regular old) foo+0, will succeed due
      to that second ENDBR.
    
      Fixing this led to the discovery of a single indirect call that was
      still doing this: ret_from_fork(). Since that's an assembly stub the
      compiler would not generate the proper kCFI indirect call magic and it
      would not get patched.
    
      Brian came up with the most comprehensive fix -- convert the thing to
      C with only a very thin asm wrapper. This ensures the kernel thread
      boostrap is a proper kCFI call.
    
      While discussing all this, Kees noted that kCFI hashes could/should be
      poisoned to seal all functions whose address is never taken, further
      limiting the valid kCFI targets -- much like we already do for IBT.
    
      So what was a 'simple' observation and fix cascaded into a bunch of
      inter-related CFI infrastructure fixes"
    
    * tag 'x86_urgent_for_6.5_rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      x86/cfi: Only define poison_cfi() if CONFIG_X86_KERNEL_IBT=y
      x86/fineibt: Poison ENDBR at +0
      x86: Rewrite ret_from_fork() in C
      x86/32: Remove schedule_tail_wrapper()
      x86/cfi: Extend ENDBR sealing to kCFI
      x86/alternative: Rename apply_ibt_endbr()
      x86/cfi: Extend {JMP,CAKK}_NOSPEC comment
    torvalds committed Jul 15, 2023
    Copy the full SHA
    b6e6cc1 View commit details
    Browse the repository at this point in the history
  5. Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/g…

    …it/jejb/scsi
    
    Pull SCSI fixes from James Bottomley:
     "This is a bunch of small driver fixes and a larger rework of zone disk
      handling (which reaches into blk and nvme).
    
      The aacraid array-bounds fix is now critical since the security people
      turned on -Werror for some build tests, which now fail without it"
    
    * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
      scsi: storvsc: Handle SRB status value 0x30
      scsi: block: Improve checks in blk_revalidate_disk_zones()
      scsi: block: virtio_blk: Set zone limits before revalidating zones
      scsi: block: nullblk: Set zone limits before revalidating zones
      scsi: nvme: zns: Set zone limits before revalidating zones
      scsi: sd_zbc: Set zone limits before revalidating zones
      scsi: ufs: core: Add support for qTimestamp attribute
      scsi: aacraid: Avoid -Warray-bounds warning
      scsi: ufs: ufs-mediatek: Add dependency for RESET_CONTROLLER
      scsi: ufs: core: Update contact email for monitor sysfs nodes
      scsi: scsi_debug: Remove dead code
      scsi: qla2xxx: Use vmalloc_array() and vcalloc()
      scsi: fnic: Use vmalloc_array() and vcalloc()
      scsi: qla2xxx: Fix error code in qla2x00_start_sp()
      scsi: qla2xxx: Silence a static checker warning
      scsi: lpfc: Fix a possible data race in lpfc_unregister_fcf_rescan()
    torvalds committed Jul 15, 2023
    Copy the full SHA
    be522ac View commit details
    Browse the repository at this point in the history
  6. Merge tag 'block-6.5-2023-07-14' of git://git.kernel.dk/linux

    Pull block fixes from Jens Axboe:
    
     - NVMe pull request via Keith:
          - Don't require quirk to use duplicate namespace identifiers
            (Christoph, Sagi)
          - One more BOGUS_NID quirk (Pankaj)
          - IO timeout and error hanlding fixes for PCI (Keith)
          - Enhanced metadata format mask fix (Ankit)
          - Association race condition fix for fibre channel (Michael)
          - Correct debugfs error checks (Minjie)
          - Use PAGE_SECTORS_SHIFT where needed (Damien)
          - Reduce kernel logs for legacy nguid attribute (Keith)
          - Use correct dma direction when unmapping metadata (Ming)
    
     - Fix for a flush handling regression in this release (Christoph)
    
     - Fix for batched request time stamping (Chengming)
    
     - Fix for a regression in the mq-deadline position calculation (Bart)
    
     - Lockdep fix for blk-crypto (Eric)
    
     - Fix for a regression in the Amiga partition handling changes
       (Michael)
    
    * tag 'block-6.5-2023-07-14' of git://git.kernel.dk/linux:
      block: queue data commands from the flush state machine at the head
      blk-mq: fix start_time_ns and alloc_time_ns for pre-allocated rq
      nvme-pci: fix DMA direction of unmapping integrity data
      nvme: don't reject probe due to duplicate IDs for single-ported PCIe devices
      block/mq-deadline: Fix a bug in deadline_from_pos()
      nvme: ensure disabling pairs with unquiesce
      nvme-fc: fix race between error recovery and creating association
      nvme-fc: return non-zero status code when fails to create association
      nvme: fix parameter check in nvme_fault_inject_init()
      nvme: warn only once for legacy uuid attribute
      block: remove dead struc request->completion_data field
      nvme: fix the NVME_ID_NS_NVM_STS_MASK definition
      nvmet: use PAGE_SECTORS_SHIFT
      nvme: add BOGUS_NID quirk for Samsung SM953
      blk-crypto: use dynamic lock class for blk_crypto_profile::lock
      block/partition: fix signedness issue for Amiga partitions
    torvalds committed Jul 15, 2023
    Copy the full SHA
    b3bd86a View commit details
    Browse the repository at this point in the history
  7. Merge tag 'io_uring-6.5-2023-07-14' of git://git.kernel.dk/linux

    Pull io_uring fix from Jens Axboe:
     "Just a single tweak for the wait logic in io_uring"
    
    * tag 'io_uring-6.5-2023-07-14' of git://git.kernel.dk/linux:
      io_uring: Use io_schedule* in cqring wait
    torvalds committed Jul 15, 2023
    Copy the full SHA
    ec17f16 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2023

  1. Merge tag 'riscv-for-linus-6.5-rc2' of git://git.kernel.org/pub/scm/l…

    …inux/kernel/git/riscv/linux
    
    Pull RISC-V fixes from Palmer Dabbelt:
    
     - fix a formatting error in the hwprobe documentation
    
     - fix a spurious warning in the RISC-V PMU driver
    
     - fix memory detection on rv32 (problem does not manifest on any known
       system)
    
     - avoid parsing legacy parsing of I in ACPI ISA strings
    
    * tag 'riscv-for-linus-6.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
      RISC-V: Don't include Zicsr or Zifencei in I from ACPI
      riscv: mm: fix truncation warning on RV32
      perf: RISC-V: Remove PERF_HES_STOPPED flag checking in riscv_pmu_start()
      Documentation: RISC-V: hwprobe: Fix a formatting error
    torvalds committed Jul 14, 2023
    Copy the full SHA
    2772d7d View commit details
    Browse the repository at this point in the history
  2. Merge tag 'pm-6.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/g…

    …it/rafael/linux-pm
    
    Pull power management fixes from Rafael Wysocki:
     "These fix hibernation (after recent changes), frequency QoS and the
      sparc cpufreq driver.
    
      Specifics:
    
       - Unbreak the /sys/power/resume interface after recent changes (Azat
         Khuzhin).
    
       - Allow PM_QOS_DEFAULT_VALUE to be used with frequency QoS (Chungkai
         Yang).
    
       - Remove __init from cpufreq callbacks in the sparc driver, because
         they may be called after initialization too (Viresh Kumar)"
    
    * tag 'pm-6.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
      cpufreq: sparc: Don't mark cpufreq callbacks with __init
      PM: QoS: Restore support for default value on frequency QoS
      PM: hibernate: Fix writing maj:min to /sys/power/resume
    torvalds committed Jul 14, 2023
    Copy the full SHA
    bde7f15 View commit details
    Browse the repository at this point in the history
  3. Merge branches 'pm-sleep' and 'pm-qos'

    Merge a PM QoS fix and a hibernation fix for 6.5-rc2.
    
     - Unbreak the /sys/power/resume interface after recent changes (Azat
       Khuzhin).
    
     - Allow PM_QOS_DEFAULT_VALUE to be used with frequency QoS (Chungkai
       Yang).
    
    * pm-sleep:
      PM: hibernate: Fix writing maj:min to /sys/power/resume
    
    * pm-qos:
      PM: QoS: Restore support for default value on frequency QoS
    rafaeljw committed Jul 14, 2023
    Copy the full SHA
    d121758 View commit details
    Browse the repository at this point in the history
  4. cifs: fix mid leak during reconnection after timeout threshold

    When the number of responses with status of STATUS_IO_TIMEOUT
    exceeds a specified threshold (NUM_STATUS_IO_TIMEOUT), we reconnect
    the connection. But we do not return the mid, or the credits
    returned for the mid, or reduce the number of in-flight requests.
    
    This bug could result in the server->in_flight count to go bad,
    and also cause a leak in the mids.
    
    This change moves the check to a few lines below where the
    response is decrypted, even of the response is read from the
    transform header. This way, the code for returning the mids
    can be reused.
    
    Also, the cifs_reconnect was reconnecting just the transport
    connection before. In case of multi-channel, this may not be
    what we want to do after several timeouts. Changed that to
    reconnect the session and the tree too.
    
    Also renamed NUM_STATUS_IO_TIMEOUT to a more appropriate name
    MAX_STATUS_IO_TIMEOUT.
    
    Fixes: 8e670f7 ("Handle STATUS_IO_TIMEOUT gracefully")
    Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
    Signed-off-by: Steve French <stfrench@microsoft.com>
    nspmangalore authored and Steve French committed Jul 14, 2023
    Copy the full SHA
    69cba9d View commit details
    Browse the repository at this point in the history
Older