* linux-next: manual merge of the scsi-mkp tree with the tip tree
@ 2025-02-25 4:32 Stephen Rothwell
2025-02-25 9:38 ` John Garry
2025-03-04 7:11 ` Stephen Rothwell
0 siblings, 2 replies; 5+ messages in thread
From: Stephen Rothwell @ 2025-02-25 4:32 UTC (permalink / raw)
To: Martin K. Petersen, Thomas Gleixner, Ingo Molnar, H. Peter Anvin,
Peter Zijlstra
Cc: Bart Van Assche, John Garry, Linux Kernel Mailing List,
Linux Next Mailing List, Nam Cao
[-- Attachment #1: Type: text/plain, Size: 1473 bytes --]
Hi all,
Today's linux-next merge of the scsi-mkp tree got a conflict in:
drivers/scsi/scsi_debug.c
between commit:
b7011929380d ("scsi: Switch to use hrtimer_setup()")
from the tip tree and commit:
b441eafbd1eb ("scsi: scsi_debug: Simplify command handling")
from the scsi-mkp tree.
I fixed it up (I think - 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.
--
Cheers,
Stephen Rothwell
diff --cc drivers/scsi/scsi_debug.c
index fe5c30bb2639,2208dcba346e..000000000000
--- a/drivers/scsi/scsi_debug.c
+++ b/drivers/scsi/scsi_debug.c
@@@ -8701,8 -9351,12 +9351,13 @@@ err_out
static int sdebug_init_cmd_priv(struct Scsi_Host *shost, struct scsi_cmnd *cmd)
{
struct sdebug_scsi_cmd *sdsc = scsi_cmd_priv(cmd);
+ struct sdebug_defer *sd_dp = &sdsc->sd_dp;
spin_lock_init(&sdsc->lock);
- hrtimer_init(&sd_dp->hrt, CLOCK_MONOTONIC, HRTIMER_MODE_REL_PINNED);
++ hrtimer_setup(&sd_dp->hrt, sdebug_q_cmd_hrt_complete, CLOCK_MONOTONIC,
++ HRTIMER_MODE_REL_PINNED);
+ sd_dp->hrt.function = sdebug_q_cmd_hrt_complete;
+ INIT_WORK(&sd_dp->ew.work, sdebug_q_cmd_wq_complete);
return 0;
}
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: linux-next: manual merge of the scsi-mkp tree with the tip tree
2025-02-25 4:32 linux-next: manual merge of the scsi-mkp tree with the tip tree Stephen Rothwell
@ 2025-02-25 9:38 ` John Garry
2025-02-25 19:32 ` Thomas Gleixner
2025-03-04 7:11 ` Stephen Rothwell
1 sibling, 1 reply; 5+ messages in thread
From: John Garry @ 2025-02-25 9:38 UTC (permalink / raw)
To: Stephen Rothwell, Martin K. Petersen, Thomas Gleixner,
Ingo Molnar, H. Peter Anvin, Peter Zijlstra
Cc: Bart Van Assche, Linux Kernel Mailing List,
Linux Next Mailing List, Nam Cao
On 25/02/2025 04:32, Stephen Rothwell wrote:
> Hi all,
>
> Today's linux-next merge of the scsi-mkp tree got a conflict in:
>
> drivers/scsi/scsi_debug.c
>
> between commit:
>
> b7011929380d ("scsi: Switch to use hrtimer_setup()")
>
> from the tip tree and commit:
>
> b441eafbd1eb ("scsi: scsi_debug: Simplify command handling")
>
> from the scsi-mkp tree.
>
> I fixed it up (I think - 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.
>
static int sdebug_init_cmd_priv(struct Scsi_Host *shost, struct
scsi_cmnd *cmd)
{
struct sdebug_scsi_cmd *sdsc = scsi_cmd_priv(cmd);
struct sdebug_defer *sd_dp = &sdsc->sd_dp;
spin_lock_init(&sdsc->lock);
hrtimer_setup(&sd_dp->hrt, sdebug_q_cmd_hrt_complete, CLOCK_MONOTONIC,
HRTIMER_MODE_REL_PINNED);
sd_dp->hrt.function = sdebug_q_cmd_hrt_complete; ***
INIT_WORK(&sd_dp->ew.work, sdebug_q_cmd_wq_complete);
I guess that setting sd_dp->hrt.function explicitly, at *** above, is
not needed (as hrtimer_setup()) does this.
Thanks,
John
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: linux-next: manual merge of the scsi-mkp tree with the tip tree
2025-02-25 9:38 ` John Garry
@ 2025-02-25 19:32 ` Thomas Gleixner
2025-02-25 21:54 ` Stephen Rothwell
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Gleixner @ 2025-02-25 19:32 UTC (permalink / raw)
To: John Garry, Stephen Rothwell, Martin K. Petersen, Ingo Molnar,
H. Peter Anvin, Peter Zijlstra
Cc: Bart Van Assche, Linux Kernel Mailing List,
Linux Next Mailing List, Nam Cao
On Tue, Feb 25 2025 at 09:38, John Garry wrote:
> On 25/02/2025 04:32, Stephen Rothwell wrote:
>> Hi all,
>>
>> Today's linux-next merge of the scsi-mkp tree got a conflict in:
>>
>> drivers/scsi/scsi_debug.c
>>
>> between commit:
>>
>> b7011929380d ("scsi: Switch to use hrtimer_setup()")
>>
>> from the tip tree and commit:
>>
>> b441eafbd1eb ("scsi: scsi_debug: Simplify command handling")
>>
>> from the scsi-mkp tree.
>>
>> I fixed it up (I think - 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.
>>
> static int sdebug_init_cmd_priv(struct Scsi_Host *shost, struct
> scsi_cmnd *cmd)
> {
> struct sdebug_scsi_cmd *sdsc = scsi_cmd_priv(cmd);
> struct sdebug_defer *sd_dp = &sdsc->sd_dp;
>
> spin_lock_init(&sdsc->lock);
> hrtimer_setup(&sd_dp->hrt, sdebug_q_cmd_hrt_complete, CLOCK_MONOTONIC,
> HRTIMER_MODE_REL_PINNED);
> sd_dp->hrt.function = sdebug_q_cmd_hrt_complete; ***
> INIT_WORK(&sd_dp->ew.work, sdebug_q_cmd_wq_complete);
>
>
> I guess that setting sd_dp->hrt.function explicitly, at *** above, is
> not needed (as hrtimer_setup()) does this.
Correct. hrtimer_setup is enough.
Thanks,
tglx
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: linux-next: manual merge of the scsi-mkp tree with the tip tree
2025-02-25 19:32 ` Thomas Gleixner
@ 2025-02-25 21:54 ` Stephen Rothwell
0 siblings, 0 replies; 5+ messages in thread
From: Stephen Rothwell @ 2025-02-25 21:54 UTC (permalink / raw)
To: Thomas Gleixner
Cc: John Garry, Martin K. Petersen, Ingo Molnar, H. Peter Anvin,
Peter Zijlstra, Bart Van Assche, Linux Kernel Mailing List,
Linux Next Mailing List, Nam Cao
[-- Attachment #1: Type: text/plain, Size: 887 bytes --]
Hi all,
On Tue, 25 Feb 2025 20:32:28 +0100 Thomas Gleixner <tglx@linutronix.de> wrote:
>
> On Tue, Feb 25 2025 at 09:38, John Garry wrote:
> >
> > static int sdebug_init_cmd_priv(struct Scsi_Host *shost, struct
> > scsi_cmnd *cmd)
> > {
> > struct sdebug_scsi_cmd *sdsc = scsi_cmd_priv(cmd);
> > struct sdebug_defer *sd_dp = &sdsc->sd_dp;
> >
> > spin_lock_init(&sdsc->lock);
> > hrtimer_setup(&sd_dp->hrt, sdebug_q_cmd_hrt_complete, CLOCK_MONOTONIC,
> > HRTIMER_MODE_REL_PINNED);
> > sd_dp->hrt.function = sdebug_q_cmd_hrt_complete; ***
> > INIT_WORK(&sd_dp->ew.work, sdebug_q_cmd_wq_complete);
> >
> >
> > I guess that setting sd_dp->hrt.function explicitly, at *** above, is
> > not needed (as hrtimer_setup()) does this.
>
> Correct. hrtimer_setup is enough.
Thanks, I have updated my merge resolution.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: linux-next: manual merge of the scsi-mkp tree with the tip tree
2025-02-25 4:32 linux-next: manual merge of the scsi-mkp tree with the tip tree Stephen Rothwell
2025-02-25 9:38 ` John Garry
@ 2025-03-04 7:11 ` Stephen Rothwell
1 sibling, 0 replies; 5+ messages in thread
From: Stephen Rothwell @ 2025-03-04 7:11 UTC (permalink / raw)
To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, Peter Zijlstra,
James Bottomley
Cc: Martin K. Petersen, Bart Van Assche, John Garry,
Linux Kernel Mailing List, Linux Next Mailing List, Nam Cao
[-- Attachment #1: Type: text/plain, Size: 1706 bytes --]
Hi all,
On Tue, 25 Feb 2025 15:32:00 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Today's linux-next merge of the scsi-mkp tree got a conflict in:
>
> drivers/scsi/scsi_debug.c
>
> between commit:
>
> b7011929380d ("scsi: Switch to use hrtimer_setup()")
>
> from the tip tree and commit:
>
> b441eafbd1eb ("scsi: scsi_debug: Simplify command handling")
>
> from the scsi-mkp tree.
>
> I fixed it up (I think - 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 drivers/scsi/scsi_debug.c
> index fe5c30bb2639,2208dcba346e..000000000000
> --- a/drivers/scsi/scsi_debug.c
> +++ b/drivers/scsi/scsi_debug.c
> @@@ -8701,8 -9351,12 +9351,13 @@@ err_out
> static int sdebug_init_cmd_priv(struct Scsi_Host *shost, struct scsi_cmnd *cmd)
> {
> struct sdebug_scsi_cmd *sdsc = scsi_cmd_priv(cmd);
> + struct sdebug_defer *sd_dp = &sdsc->sd_dp;
>
> spin_lock_init(&sdsc->lock);
> - hrtimer_init(&sd_dp->hrt, CLOCK_MONOTONIC, HRTIMER_MODE_REL_PINNED);
> ++ hrtimer_setup(&sd_dp->hrt, sdebug_q_cmd_hrt_complete, CLOCK_MONOTONIC,
> ++ HRTIMER_MODE_REL_PINNED);
> + sd_dp->hrt.function = sdebug_q_cmd_hrt_complete;
> + INIT_WORK(&sd_dp->ew.work, sdebug_q_cmd_wq_complete);
>
> return 0;
> }
This is now a conflict between the scsi tree and the tip tree.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-03-04 7:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-25 4:32 linux-next: manual merge of the scsi-mkp tree with the tip tree Stephen Rothwell
2025-02-25 9:38 ` John Garry
2025-02-25 19:32 ` Thomas Gleixner
2025-02-25 21:54 ` Stephen Rothwell
2025-03-04 7:11 ` Stephen Rothwell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox