Skip to contentSkip to conversation

Remove unnecessary tlb flush in blktap_poll

PATCH New Stephen C. Tweedie 1 participant 1 message Sep 28, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove unnecessary tlb flush in blktap_poll

blktap_poll is calling tlb_flush_all() in its main ring buffer polling loop. This seems to be superfluous: the hypervisor should be performing any necessary tlb flushes on grant table operations performed by the back-end. Even a simple memory barrier is unnecessary here as the RING_PUSH_REQUESTS() call performs a wmb() anyway.

And tlb_flush_all() is not exported to modules, so this call prevents blktap from building as a module. Just remove it.

linux-2.6-xen-sparse/drivers/xen/blktap/blktap.c +0 -1
diff -r 49d429529228 -r cb125a885a9a linux-2.6-xen-sparse/drivers/xen/blktap/blktap.c
@@ -680,7 +680,6 @@ static unsigned int blktap_poll(struct f
 	
 	poll_wait(file, &info->wait, wait);
 	if (info->ufe_ring.req_prod_pvt != info->ufe_ring.sring->req_prod) {
-		flush_tlb_all();
 		RING_PUSH_REQUESTS(&info->ufe_ring);
 		return POLLIN | POLLRDNORM;
 	}