Jason, > The return value of smp_execute_task_sg() is the untransferred > residual, but bsg_job_done() requires the length of payload > received. This makes SMP passthrough commands from userland by sg > ioctl to libsas get a wrong response. The userland tools such as > smp_utils failed becuase of these wrong responses: Applied to 4.15/scsi-fixes. Thanks! -- Martin K. Petersen Oracle Linux Engineering