Skip to contentSkip to conversation

Oxenstored short-write issue

DISCUSSION Wei Liu 3 participants 4 messages Oct 27, 2015

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

Hi Dave

We discovered an issue in oxenstored: when it writes to the ring, it writes a chunk of contiguous data. When it tries to write across ring boundary, it returns a short-write. That leads to stalling mini-os's xenbus ring.

Samuel provided a diff which solves the issue:
http://www.gossamer-threads.com/lists/xen/devel/403800#403800

You can find our discussions in that thread. Note that thread was mainly for a patch to fix an issue in mini-os but we discovered that oxenstored issue along the way.

Wei.

#1 lore raw

Hi,

Quoted 8 lines · Wei Liu

Hi Dave

We discovered an issue in oxenstored: when it writes to the ring, it writes a chunk of contiguous data. When it tries to write across ring boundary, it returns a short-write. That leads to stalling mini-os's xenbus ring.

Quoted 6 lines

Samuel provided a diff which solves the issue:
http://www.gossamer-threads.com/lists/xen/devel/403800#403800

You can find our discussions in that thread. Note that thread was mainly for a patch to fix an issue in mini-os but we discovered that oxenstored issue along the way.

Interesting! I always thought it was a bit odd that oxenstored could write a partial packet but I thought it would retry higher up and complete the transmit before sleeping. It’s certainly clearer to complete the write at the lower-level though.

So I think the diff looks ok.

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

author
#2 lore raw
Quoted 13 lines · David Scott

Hi,

Quoted 11 lines · Wei Liu

Hi Dave

We discovered an issue in oxenstored: when it writes to the ring, it writes a chunk of contiguous data. When it tries to write across ring boundary, it returns a short-write. That leads to stalling mini-os's xenbus ring.

Samuel provided a diff which solves the issue:
http://www.gossamer-threads.com/lists/xen/devel/403800#403800

Quoted 8 lines
Quoted 3 lines

You can find our discussions in that thread. Note that thread was mainly for a patch to fix an issue in mini-os but we discovered that oxenstored issue along the way.

Interesting! I always thought it was a bit odd that oxenstored could write a partial packet but I thought it would retry higher up and complete the transmit before sleeping. It’s certainly clearer to complete the write at the lower-level though.

So I think the diff looks ok.

OK, if you think that hunk is good. I will submit a proper patch for it.

Samuel, can I have your S-o-B on that patch?

Wei.

Quoted 2 lines

Cheers,
Dave

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

#3 lore raw
Quoted 5 lines · Wei Liu, le Tue 27 Oct 2015 15:59:46 +0000, a écrit :
Quoted 3 lines

Interesting! I always thought it was a bit odd that oxenstored could write a partial packet but I thought it would retry higher up and complete the transmit before sleeping. It’s certainly clearer to complete the write at the lower-level though.

So I think the diff looks ok.

OK, if you think that hunk is good. I will submit a proper patch for it.

Thanks,

Quoted 1 line

Samuel, can I have your S-o-B on that patch?

Yep, done so in another mail.

Samuel

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