Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1595357

Re: out of range LBA using sg_raw

From "Martin K. Petersen" <martin.petersen@oracle.com>
Newsgroups linux.kernel
Subject Re: out of range LBA using sg_raw
Date 2017-03-08 17:40 +0100
Message-ID <tiMN3-GJ-7@gated-at.bofh.it> (permalink)
References <tiKLf-7L9-5@gated-at.bofh.it> <tiMam-bQ-21@gated-at.bofh.it> <tiMam-bQ-19@gated-at.bofh.it>
Organization Oracle Corporation

Show all headers | View raw


>>>>> "Kashyap" == Kashyap Desai <kashyap.desai@broadcom.com> writes:

Kashyap,

Kashyap> I am just curious to know how badly we have to scrutinize each
Kashyap> packet before sending to Fast Path as we are in IO path and
Kashyap> recommend only important checks to be added.

As Christoph pointed out, when the fast path is in use you assume the
role of the SCSI device. And therefore it is your responsibility to
ensure that the VD's capacity and other relevant constraints are being
honored. Just like the MR firmware and any attached disks would.

It is a feature that there is no sanity checking in the sg interface.
The intent is to be able to pass through commands directly to a device
and have the device act upon them. Including fail them if they don't
make any sense.

PS. I'm really no fan of the fast path. It's super messy to have the VD
layout handled in two different places.

-- 
Martin K. Petersen	Oracle Linux Engineering

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

out of range LBA using sg_raw Kashyap Desai <kashyap.desai@broadcom.com> - 2017-03-08 15:30 +0100
  RE: out of range LBA using sg_raw Kashyap Desai <kashyap.desai@broadcom.com> - 2017-03-08 17:00 +0100
    RE: out of range LBA using sg_raw Kashyap Desai <kashyap.desai@broadcom.com> - 2017-03-08 17:20 +0100
    Re: out of range LBA using sg_raw "Martin K. Petersen" <martin.petersen@oracle.com> - 2017-03-08 17:40 +0100
      RE: out of range LBA using sg_raw Kashyap Desai <kashyap.desai@broadcom.com> - 2017-03-08 18:00 +0100
        Re: out of range LBA using sg_raw "Martin K. Petersen" <martin.petersen@oracle.com> - 2017-03-09 01:50 +0100
    Re: out of range LBA using sg_raw Christoph Hellwig <hch@infradead.org> - 2017-03-08 17:40 +0100
      RE: out of range LBA using sg_raw Kashyap Desai <kashyap.desai@broadcom.com> - 2017-03-08 17:40 +0100
  Re: out of range LBA using sg_raw Christoph Hellwig <hch@infradead.org> - 2017-03-08 17:10 +0100

csiph-web