Skip to contentSkip to conversation

blkif: update persistent grants documentation

PATCH In review Roger Pau Monne 2 participants 2 messages Aug 12, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 blkif: update persistent grants documentation

Update blkif protocol extensions documentation to reflect the new behaviour in Linux persistent grants implementation.

---
 xen/include/public/io/blkif.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
xen/include/public/io/blkif.h +6 -0
index b9b9d98..27ae8b6 100644
@@ -290,6 +290,12 @@
  *      the previous protocol, a frontend driver can choose to work in
  *      persistent mode even when the backend doesn't support it.
  *
+ *      When the backend driver needs to unmap a persistent grant it should
+ *      do so prior to completing a request that used that grant reference.
+ *      If a persistent grant is unmapped at any other time, the frontend
+ *      driver may not notice and may be unable to reclaim the grant
+ *      reference.
+ *
  *      It is recommended that the frontend driver stores the persistently
  *      mapped grants in a LIFO queue, so a subset of all persistently mapped
  *      grants gets used commonly. This is done in case the backend driver
Signature · 7 lines
1.7.7.5 (Apple Git-26)


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Roger Pau Monne

Update blkif protocol extensions documentation to reflect the new behaviour in Linux persistent grants implementation.

Thanks.

David

Quoted 11 lines
---
 xen/include/public/io/blkif.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
xen/include/public/io/blkif.h +0 -0
index b9b9d98..27ae8b6 100644
@@ -290,6 +290,12 @@
  *      the previous protocol, a frontend driver can choose to work in
  *      persistent mode even when the backend doesn't support it.

xen/include/public/io/blkif.h line 301

Quoted 10 lines
xen/include/public/io/blkif.h +6 -0
  *
+ *      When the backend driver needs to unmap a persistent grant it should
+ *      do so prior to completing a request that used that grant reference.
+ *      If a persistent grant is unmapped at any other time, the frontend
+ *      driver may not notice and may be unable to reclaim the grant
+ *      reference.
+ *
  *      It is recommended that the frontend driver stores the persistently
  *      mapped grants in a LIFO queue, so a subset of all persistently mapped
  *      grants gets used commonly. This is done in case the backend driver

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel