nvmet: use unlikely for req status check
Subsystems (2)
PATCH 1/1 nvmet: use unlikely for req status check
This patch adds unlikely in the nvmet request completion path for the status check in the low level function __nvmet_req_complete. This is helpful in the scenario where host and target connection is working smoothly.
Signed-off-by Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>
--- drivers/nvme/target/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvme/target/core.c +1 -1
@@ -602,7 +602,7 @@ static void __nvmet_req_complete(struct nvmet_req *req, u16 status)u32 old_sqhd, new_sqhd;u16 sqhd; -if (status) +if (unlikely (status))nvmet_set_status (req, status);if (req->sq->size) {
Signature · 1 line
2.17.0
Sagi Grimberg
maintainerPATCH 1/1 nvmet: use unlikely for req status check
Reviewed-by Sagi Grimberg <sagi at grimberg.me>
Christoph Hellwig
AppliedPATCH 1/1 nvmet: use unlikely for req status check
In reply to Chaitanya KulkarniThanks,
applied to nvme-4.21.