hw/9pfs: Update v9fs_getlock to use coroutines

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
This commit is contained in:
Aneesh Kumar K.V 2011-05-07 17:21:38 +05:30
parent 0c27bf2a45
commit e4e414a427
2 changed files with 19 additions and 32 deletions

View file

@ -412,15 +412,6 @@ typedef struct V9fsGetlock
V9fsString client_id;
} V9fsGetlock;
typedef struct V9fsGetlockState
{
V9fsPDU *pdu;
size_t offset;
struct stat stbuf;
V9fsFidState *fidp;
V9fsGetlock *glock;
} V9fsGetlockState;
size_t pdu_packunpack(void *addr, struct iovec *sg, int sg_count,
size_t offset, size_t size, int pack);