Re: linux-next: manual merge of the tip tree with the block tree

From: Andreas Hindborg
Date: Wed Sep 17 2025 - 03:47:00 EST


"Mark Brown" <broonie@xxxxxxxxxx> writes:

> Hi all,
>
> Today's linux-next merge of the tip tree got a conflict in:
>
> rust/kernel/block/mq/operations.rs
>
> between commit:
>
> 90d952fac8ac1 ("rust: block: add `GenDisk` private data support")
>
> from the block tree and commit:
>
> b6dd7b75496c5 ("rust: block: convert `block::mq` to use `Refcount`")
>
> from the tip tree.
>
> I fixed it up (see below) and can carry the fix as necessary. This
> is now fixed as far as linux-next is concerned, but any non trivial
> conflicts should be mentioned to your upstream maintainer when your tree
> is submitted for merging. You may also want to consider cooperating
> with the maintainer of the conflicting tree to minimise any particularly
> complex conflicts.
>
> diff --cc rust/kernel/block/mq/operations.rs
> index d098a8a3e4340,c0f95a9419c4e..0000000000000
> --- a/rust/kernel/block/mq/operations.rs
> +++ b/rust/kernel/block/mq/operations.rs
> @@@ -6,15 -6,15 +6,16 @@@
>
> use crate::{
> bindings,
> - block::mq::request::RequestDataWrapper,
> - block::mq::Request,
> + block::mq::{request::RequestDataWrapper, Request},
> error::{from_result, Result},
> prelude::*,
> + sync::Refcount,
> - types::ARef,
> + types::{ARef, ForeignOwnable},
> };
> - use core::{marker::PhantomData, sync::atomic::AtomicU64, sync::atomic::Ordering};
> + use core::marker::PhantomData;
>
> +type ForeignBorrowed<'a, T> = <T as ForeignOwnable>::Borrowed<'a>;
> +
> /// Implement this trait to interface blk-mq as block devices.
> ///
> /// To implement a block device driver, implement this trait as described in the

Looks good to me, thanks!


Best regards,
Andreas Hindborg