Skip to content

ublk: fix maple tree lockdep warning and cleanup#781

Open
blktests-ci[bot] wants to merge 3 commits intofor-next_basefrom
series/1084496=>for-next
Open

ublk: fix maple tree lockdep warning and cleanup#781
blktests-ci[bot] wants to merge 3 commits intofor-next_basefrom
series/1084496=>for-next

Conversation

@blktests-ci
Copy link
Copy Markdown

@blktests-ci blktests-ci Bot commented Apr 29, 2026

Pull request for series with
subject: ublk: fix maple tree lockdep warning and cleanup
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1084496

axboe and others added 3 commits April 28, 2026 16:09
* block-7.1: (35 commits)
  md: use ATTRIBUTE_GROUPS() for md default sysfs attributes
  md: use mddev_is_dm() instead of open-coding gendisk checks
  md/raid1: replace wait loop with wait_event_idle() in raid1_write_request()
  md/md-bitmap: add a none backend for bitmap grow
  md/md-bitmap: split bitmap sysfs groups
  md: factor bitmap creation away from sysfs handling
  md: use mddev_lock_nointr() in mddev_suspend_and_lock_nointr()
  md: replace wait loop with wait_event() in md_handle_request()
  md/raid10: fix divide-by-zero in setup_geo() with zero far_copies
  md/raid1,raid10: don't fail devices for invalid IO errors
  MAINTAINERS: Add Xiao Ni as md/raid reviewer
  md/raid5: Fix UAF on IO across the reshape position
  cdrom, scsi: sr: propagate read-only status to block layer via set_disk_ro()
  nvme-auth: Hash DH shared secret to create session key
  nvme-pci: fix missed admin queue sq doorbell write
  nvme-auth: Include SC_C in RVAL controller hash
  nvme-tcp: teardown circular locking fixes
  nvmet-tcp: Don't clear tls_key when freeing sq
  Revert "nvmet-tcp: Don't free SQ on authentication success"
  nvme: skip trace completion for host path errors
  ...
* io_uring-7.1:
  io_uring/napi: cap busy_poll_to 10 msec
  io_uring/kbuf: support min length left for incremental buffers
  io_uring/kbuf: kill dead struct io_buffer_list 'nr_entries' member
@blktests-ci
Copy link
Copy Markdown
Author

blktests-ci Bot commented Apr 29, 2026

Upstream branch: fb9d71c
series: https://patchwork.kernel.org/project/linux-block/list/?series=1084496
version: 1

Pull request is NOT updated. Failed to apply https://patchwork.kernel.org/project/linux-block/list/?series=1084496
error message:

Cmd('git') failed due to: exit code(128)
  cmdline: git am --3way
  stdout: 'Applying: ublk: fix maple tree lockdep warning in ublk_buf_cleanup
Using index info to reconstruct a base tree...
M	drivers/block/ublk_drv.c
Falling back to patching base and 3-way merge...
Auto-merging drivers/block/ublk_drv.c
CONFLICT (content): Merge conflict in drivers/block/ublk_drv.c
Patch failed at 0001 ublk: fix maple tree lockdep warning in ublk_buf_cleanup'
  stderr: 'error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"'

conflict:

diff --cc drivers/block/ublk_drv.c
index 8e5f3738c203,e8d71617fbda..000000000000
--- a/drivers/block/ublk_drv.c
+++ b/drivers/block/ublk_drv.c
@@@ -5531,7 -5465,31 +5531,35 @@@ static int ublk_ctrl_unreg_buf(struct u
  
  static void ublk_buf_cleanup(struct ublk_device *ub)
  {
++<<<<<<< HEAD
 +	ublk_shmem_remove_ranges(ub, -1);
++=======
+ 	MA_STATE(mas, &ub->buf_tree, 0, ULONG_MAX);
+ 	struct ublk_buf_range *range;
+ 	struct page *pages[32];
+ 
+ 	mas_lock(&mas);
+ 	mas_for_each(&mas, range, ULONG_MAX) {
+ 		unsigned long base = mas.index;
+ 		unsigned long nr = mas.last - base + 1;
+ 		unsigned long off;
+ 
+ 		mas_erase(&mas);
+ 
+ 		for (off = 0; off < nr; ) {
+ 			unsigned int batch = min_t(unsigned long,
+ 						   nr - off, 32);
+ 			unsigned int j;
+ 
+ 			for (j = 0; j < batch; j++)
+ 				pages[j] = pfn_to_page(base + off + j);
+ 			unpin_user_pages(pages, batch);
+ 			off += batch;
+ 		}
+ 		kfree(range);
+ 	}
+ 	mas_unlock(&mas);
++>>>>>>> ublk: fix maple tree lockdep warning in ublk_buf_cleanup
  	mtree_destroy(&ub->buf_tree);
  	ida_destroy(&ub->buf_ida);
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants