Artur Paszkiewicz <artur.paszkiewicz@xxxxxxxxx> writes: > Don't rely on SCSI ioctl for reading NVMe serials - SCSI emulation for > NVMe devices can be disabled in the kernel config. Instead, try to get a > serial from /sys/block/nvme*/device/serial. If that fails for whatever > reason (i.e. no such attribute in old kernels) - fall back to the SCSI > method. > > This also moves some SCSI-specific code from imsm_read_serial() to > scsi_get_serial(). > > Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@xxxxxxxxx> > Reviewed-by: Tomasz Majchrzak <tomasz.majchrzak@xxxxxxxxx> > Reviewed-by: Alexey Obitotskiy <aleksey.obitotskiy@xxxxxxxxx> > --- > sg_io.c | 23 +++++++++++++++++++---- > super-intel.c | 46 +++++++++++++++++++++++++++------------------- > 2 files changed, 46 insertions(+), 23 deletions(-) Hi Artur, Looks quite reasonable - applied! Thanks, Jes -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html