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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

On Tue, 25 Feb 2025 20:32:28 +0100 Thomas Gleixner <tglx@xxxxxxxxxxxxx> 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: pgpFRiK4TvVMf.pgp
Description: OpenPGP digital signature


[Index of Archives]     [Linux Kernel]     [Linux USB Development]     [Yosemite News]     [Linux SCSI]

  Powered by Linux