Re: [RFC PATCH 03/13] scsi: scsi_dh: Introduce scsi_dh_ufshpb

2020-05-15 Thread Bart Van Assche
On 2020-05-15 03:30, Avri Altman wrote: > +static int ufshpb_attach(struct scsi_device *sdev) > +{ > + struct ufshpb_dh_data *h; > + > + h = kzalloc(sizeof(*h), GFP_KERNEL); > + if (!h) > + return SCSI_DH_NOMEM; > + > + sdev_printk(KERN_INFO, sdev, "%s: attached to sdev

[RFC PATCH 03/13] scsi: scsi_dh: Introduce scsi_dh_ufshpb

2020-05-15 Thread Avri Altman
Add a scsi device handler companion to support ufs hpb. The scsi-device-handler infrastructure was added to the kernel mainly to facilitate multiple paths for storage devices. The HPB framework, although far from the original intention of the authors, might as well fit in. In that sense, using