[dm-devel] [PATCH v4 1/3] scsi: scsi_ioctl: export __scsi_result_to_blk_status()
Martin Wilck
mwilck at suse.com
Tue Jun 29 19:23:18 UTC 2021
On Di, 2021-06-29 at 14:59 +0200, Christoph Hellwig wrote:
> On Mon, Jun 28, 2021 at 04:57:33PM +0200, Martin Wilck wrote:
>
> > The sg_io-on-multipath code needs to answer the question "is this a
> > path or a target error?". Therefore it calls blk_path_error(),
> > which
> > requires obtaining a blk_status_t first. But that's not available
> > in
> > the sg_io code path. So how should I deal with this situation?
>
> Not by exporting random crap from the SCSI code.
So, you'd prefer inlining scsi_result_to_blk_status()?
Thanks,
Martin
More information about the dm-devel
mailing list