RE: [PATCH v3 3/3] scsi: ufs-bsg: Allow reading descriptors

2019-01-25 Thread Avri Altman
> > out: > > return 0; > > } > > - > > nit: This blank should be here. Done. > > > static int ufs_bsg_request(struct bsg_job *job) > > { > > struct ufs_bsg_request *bsg_request = job->request; > > @@ -140,6 +137,12 @@ static int ufs_bsg_request(struct bsg_job *job) > >

Re: [PATCH v3 3/3] scsi: ufs-bsg: Allow reading descriptors

2019-01-25 Thread Evan Green
On Fri, Jan 25, 2019 at 2:13 PM Avri Altman wrote: > > Add this functionality, placing the descriptor being read in the actual > data buffer in the bio. > > That is, for both read and write descriptors query upiu, we are using > the job's request_payload. This in turn, is mapped back in user land

[PATCH v3 3/3] scsi: ufs-bsg: Allow reading descriptors

2019-01-22 Thread Avri Altman
Add this functionality, placing the descriptor being read in the actual data buffer in the bio. That is, for both read and write descriptors query upiu, we are using the job's request_payload. This in turn, is mapped back in user land to the applicable sg_io_v4 xferp: dout_xferp for write descrip