On Wed, Apr 08, 2020 at 11:32:30AM +0000, Johannes Thumshirn wrote: > On 07/04/2020 19:00, Christoph Hellwig wrote: > > - scsi_mq_free_sgtables - yes, this would need to be done by the driver > > and actually is what undoes scsi_init_io. I think you want to export > > this instead (and remove the _mq in the name while you are at it) > > OK, I was afraid to expose too much internals if I export > scsi_mq_free_sgtables() but, sure that's a trivial change. Well, it mirrors scsi_init_io, so if we want to undo scsi_init_io it seems to be the right export.