On Wed, Sep 30, 2015 at 09:15:30AM -0700, James Bottomley wrote: > I already thought of this. Unfortunately, it fails if the internally > posted command is a single sector (the size of TW_MIN_SGL_LENGTH), which > is true for most of them. Which internally posted command? All the usual suspects set tw_dev->srb[request_id] to NULL and thus neither have a scsi_cmnd associated with them, nor will they ever reach a code path where we call twa_command_mapped(). -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html