After looking at the nes driver, I don't see any common way to support drain w/o some serious driver mods. Since SRP is the only user, perhaps we can ignore iWARP for this function...
But iser/isert essentially does it too (and I think xprtrdma will have it soon)... the modify_qp is invoked from rdma_disconnect() and we do post an 'empty' wr to wait for all the flushes to drain (see iser_conn_terminate). -- 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