[PATCH v3 5/7] nvme-fabrics: Add host support for FC transport

Trapp, Darren Darren.Trapp at cavium.com
Wed Nov 2 17:04:52 PDT 2016


James,
 
There is a problem when the LDD is being removed and is completing an AEN IO with a B1 status.   The fc transport takes this goto
        /*
         * For the linux implementation, if we have an unsuccesful
         * status, they blk-mq layer can typically be called with the
         * non-zero status and the content of the cqe isn't important.
         */
        if (status)
                goto done;
 
Here there is no cqe to check the command_id
done:                                                                                                                           
        if (!queue->qnum && cqe->command_id >= AEN_CMDID_BASE) { 
  
Since this block doesn’t execute, it calls into               blk_mq_complete_request(rq, status)  with a NULL rq.
 
Seems that we could either check against op->rqno (instead of cqe->command_id) or for op->rq (like start_fcp_op does).
 
Darren Trapp
Senior Director - Engineering
darren.trapp at cavium.com
T 949-389-6273
M 949-212-8565
26650 Aliso Viejo Pkwy, Aliso Viejo, CA 92656
www.qlogic.com





More information about the Linux-nvme mailing list