]> asedeno.scripts.mit.edu Git - linux.git/commit
nvmet-tcp: implement C2HData SUCCESS optimization
authorSagi Grimberg <sagi@grimberg.me>
Fri, 8 Mar 2019 23:41:21 +0000 (15:41 -0800)
committerChristoph Hellwig <hch@lst.de>
Fri, 5 Apr 2019 06:07:57 +0000 (08:07 +0200)
commit70583295388a3ceabc22bddeb16e788f58225d70
treef9f34c44b059bc72331166928da95b93609e73ed
parent6b80f1d2cc5a76f0121a43a612515bc8a8976e66
nvmet-tcp: implement C2HData SUCCESS optimization

TP 8000 says that the use of the SUCCESS flag depends on weather the
controller support disabling sq_head pointer updates. Given that we
support it by default, makes sense that we go the extra mile to actually
use the SUCCESS flag.

When we create the C2HData PDU header, we check if sqhd_disabled is set
on our queue, if so, we set the SUCCESS flag in the PDU header and
skip sending a completion response capsule.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Oliver Smith-Denny <osmithde@cisco.com>
Tested-by: Oliver Smith-Denny <osmithde@cisco.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/tcp.c