Date: Tue, 26 May 2020 19:09:20 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r361536 - head/sys/cam/ctl Message-ID: <202005261909.04QJ9KNZ094923@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Tue May 26 19:09:19 2020 New Revision: 361536 URL: https://svnweb.freebsd.org/changeset/base/361536 Log: Properly check kern_sg_entries for S/G list. ctl_data_print() is called in core context, so does not even know meaning of ext_sg_entries. MFC after: 1 week Sponsored by: iXsystems, Inc. Modified: head/sys/cam/ctl/ctl_util.c Modified: head/sys/cam/ctl/ctl_util.c ============================================================================== --- head/sys/cam/ctl/ctl_util.c Tue May 26 19:03:45 2020 (r361535) +++ head/sys/cam/ctl/ctl_util.c Tue May 26 19:09:19 2020 (r361536) @@ -861,7 +861,7 @@ ctl_data_print(union ctl_io *io) return; if (io->io_hdr.flags & CTL_FLAG_BUS_ADDR) return; - if (io->scsiio.ext_sg_entries > 0) /* XXX: Implement */ + if (io->scsiio.kern_sg_entries > 0) /* XXX: Implement */ return; ctl_scsi_path_string(io, path_str, sizeof(path_str)); len = min(io->scsiio.kern_data_len, 4096);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005261909.04QJ9KNZ094923>