1. 13 Feb, 2024 2 commits
  2. 08 Feb, 2024 3 commits
    • Jens Axboe's avatar
      Merge tag 'nvme-6.8-2023-02-08' of git://git.infradead.org/nvme into block-6.8 · 5f63a493
      Jens Axboe authored
      Pull NVMe fixes from Keith:
      
      "nvme fixes for Linux 6.8
      
       - Update a potentially stale firmware attribute (Maurizio)
       - Fixes for the recent verbose error logging (Keith, Chaitanya)
       - Protection information payload size fix for passthrough (Francis)"
      
      * tag 'nvme-6.8-2023-02-08' of git://git.infradead.org/nvme:
        nvme: use ns->head->pi_size instead of t10_pi_tuple structure size
        nvme-core: fix comment to reflect right functions
        nvme: move passthrough logging attribute to head
        nvme-host: fix the updating of the firmware version
      5f63a493
    • Yi Sun's avatar
      virtio-blk: Ensure no requests in virtqueues before deleting vqs. · 4ce6e2db
      Yi Sun authored
      Ensure no remaining requests in virtqueues before resetting vdev and
      deleting virtqueues. Otherwise these requests will never be completed.
      It may cause the system to become unresponsive.
      
      Function blk_mq_quiesce_queue() can ensure that requests have become
      in_flight status, but it cannot guarantee that requests have been
      processed by the device. Virtqueues should never be deleted before
      all requests become complete status.
      
      Function blk_mq_freeze_queue() ensure that all requests in virtqueues
      become complete status. And no requests can enter in virtqueues.
      Signed-off-by: default avatarYi Sun <yi.sun@unisoc.com>
      Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
      Link: https://lore.kernel.org/r/20240129085250.1550594-1-yi.sun@unisoc.comSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
      4ce6e2db
    • Tejun Heo's avatar
      blk-iocost: Fix an UBSAN shift-out-of-bounds warning · 2a427b49
      Tejun Heo authored
      When iocg_kick_delay() is called from a CPU different than the one which set
      the delay, @now may be in the past of @iocg->delay_at leading to the
      following warning:
      
        UBSAN: shift-out-of-bounds in block/blk-iocost.c:1359:23
        shift exponent 18446744073709 is too large for 64-bit type 'u64' (aka 'unsigned long long')
        ...
        Call Trace:
         <TASK>
         dump_stack_lvl+0x79/0xc0
         __ubsan_handle_shift_out_of_bounds+0x2ab/0x300
         iocg_kick_delay+0x222/0x230
         ioc_rqos_merge+0x1d7/0x2c0
         __rq_qos_merge+0x2c/0x80
         bio_attempt_back_merge+0x83/0x190
         blk_attempt_plug_merge+0x101/0x150
         blk_mq_submit_bio+0x2b1/0x720
         submit_bio_noacct_nocheck+0x320/0x3e0
         __swap_writepage+0x2ab/0x9d0
      
      The underflow itself doesn't really affect the behavior in any meaningful
      way; however, the past timestamp may exaggerate the delay amount calculated
      later in the code, which shouldn't be a material problem given the nature of
      the delay mechanism.
      
      If @now is in the past, this CPU is racing another CPU which recently set up
      the delay and there's nothing this CPU can contribute w.r.t. the delay.
      Let's bail early from iocg_kick_delay() in such cases.
      Reported-by: default avatarBreno Leitão <leitao@debian.org>
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Fixes: 5160a5a5 ("blk-iocost: implement delay adjustment hysteresis")
      Link: https://lore.kernel.org/r/ZVvc9L_CYk5LO1fT@slm.duckdns.orgSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
      2a427b49
  3. 07 Feb, 2024 3 commits
  4. 06 Feb, 2024 1 commit
    • Jan Kara's avatar
      blk-wbt: Fix detection of dirty-throttled tasks · f814bdda
      Jan Kara authored
      The detection of dirty-throttled tasks in blk-wbt has been subtly broken
      since its beginning in 2016. Namely if we are doing cgroup writeback and
      the throttled task is not in the root cgroup, balance_dirty_pages() will
      set dirty_sleep for the non-root bdi_writeback structure. However
      blk-wbt checks dirty_sleep only in the root cgroup bdi_writeback
      structure. Thus detection of recently throttled tasks is not working in
      this case (we noticed this when we switched to cgroup v2 and suddently
      writeback was slow).
      
      Since blk-wbt has no easy way to get to proper bdi_writeback and
      furthermore its intention has always been to work on the whole device
      rather than on individual cgroups, just move the dirty_sleep timestamp
      from bdi_writeback to backing_dev_info. That fixes the checking for
      recently throttled task and saves memory for everybody as a bonus.
      
      CC: stable@vger.kernel.org
      Fixes: b57d74af ("writeback: track if we're sleeping on progress in balance_dirty_pages()")
      Signed-off-by: default avatarJan Kara <jack@suse.cz>
      Link: https://lore.kernel.org/r/20240123175826.21452-1-jack@suse.cz
      [axboe: fixup indentation errors]
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      f814bdda
  5. 01 Feb, 2024 25 commits
  6. 31 Jan, 2024 3 commits
  7. 29 Jan, 2024 1 commit
  8. 26 Jan, 2024 2 commits