Skip to contentSkip to conversation

blk: fix aio context loss on media change

PATCH In review Vladimir Sementsov-Ogievskiy 4 participants 13 messages Mar 14, 2017 – Mar 15, 2017 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 blk: fix aio context loss on media change

If we have separate iothread for cdrom, we lose connection to it on qmp_blockdev_change_medium, as aio_context is on bds which is dropped and switched with new one.

As an example result, after such media change we have crash on
virtio_scsi_ctx_check: Assertion `blk_get_aio_context(d->conf.blk) == s->ctx' failed.

---

Hi all!

We've faced into this assert, and there some kind of fix. I don't sure that such fix doesn't break some conceptions, in this case, I hope, someone will propose a true-way solution.

======
Also, on master branch I can't reproduce it as vm crashed earlier, without any eject/change, on assert(s->ctx && s->dataplane_started) in virtio_scsi_data_plane_handle_ctrl(). It looks like race with virtio_scsi_dataplane_start(), and for test (to reproduce assert described above), I've "fixed" it with just:

@@ -63,6 +63,7 @@ static bool virtio_scsi_data_plane_handle_ctrl(VirtIODevice *vdev,

 {
     VirtIOSCSI *s = VIRTIO_SCSI(vdev);
+    sleep(10);
     assert(s->ctx && s->dataplane_started);
     return virtio_scsi_handle_ctrl_vq(s, vq);

}

This race is not reproduced for me in our 2.6 based branch.

 block/block-backend.c | 7 +++++++
 1 file changed, 7 insertions(+)
block/block-backend.c +7 -0
index 5742c09c2c..6d5044228e 100644
@@ -65,6 +65,8 @@ struct BlockBackend {
     bool allow_write_beyond_eof;
 
     NotifierList remove_bs_notifiers, insert_bs_notifiers;
+
+    AioContext *aio_context;
 };
 
 typedef struct BlockBackendAIOCB {
@@ -559,6 +561,10 @@ int blk_insert_bs(BlockBackend *blk, BlockDriverState *bs, Error **errp)
     }
     bdrv_ref(bs);
 
+    if (blk->aio_context != NULL) {
+        bdrv_set_aio_context(bs, blk->aio_context);
+    }
+
     notifier_list_notify(&blk->insert_bs_notifiers, blk);
     if (blk->public.throttle_state) {
         throttle_timers_attach_aio_context(
@@ -1607,6 +1613,7 @@ void blk_set_aio_context(BlockBackend *blk, AioContext *new_context)
 {
     BlockDriverState *bs = blk_bs(blk);
 
+    blk->aio_context = new_context;
     if (bs) {
         if (blk->public.throttle_state) {
             throttle_timers_detach_aio_context(&blk->public.throttle_timers);
Signature · 1 line
2.11.1
#1 lore raw

Am 14.03.2017 um 18:11 hat Vladimir Sementsov-Ogievskiy geschrieben:

Quoted 7 lines

If we have separate iothread for cdrom, we lose connection to it on qmp_blockdev_change_medium, as aio_context is on bds which is dropped and switched with new one.

As an example result, after such media change we have crash on
virtio_scsi_ctx_check: Assertion `blk_get_aio_context(d->conf.blk) == s->ctx' failed.

Quoted 8 lines

---

Hi all!

We've faced into this assert, and there some kind of fix. I don't sure that such fix doesn't break some conceptions, in this case, I hope, someone will propose a true-way solution.

The "true way" would be proper AioContext management in the sense that all users of a BDS can specify a specific AioContext that they need and if they all agree, callbacks are invoked to change everyone to that AioContext. If they conflict, attaching the new user would have to error out.

But we discussed this earlier, and while I'm not completely sure any more about the details, I seem to remeber that Paolo said something along the lines that AioContext is going away anyway and building the code for proper management would be wasted time.

Stefan, Paolo, do you remember the details why we didn't even do a simple fix like the one below? I think there were some patches on the list, no?

Kevin

Quoted 56 lines

======
Also, on master branch I can't reproduce it as vm crashed earlier, without any eject/change, on assert(s->ctx && s->dataplane_started) in virtio_scsi_data_plane_handle_ctrl(). It looks like race with virtio_scsi_dataplane_start(), and for test (to reproduce assert described above), I've "fixed" it with just:

(quoted diff) +1 -0
@@ -63,6 +63,7 @@ static bool virtio_scsi_data_plane_handle_ctrl(VirtIODevice *vdev,
 {
     VirtIOSCSI *s = VIRTIO_SCSI(vdev);
 
+    sleep(10);
     assert(s->ctx && s->dataplane_started);
     return virtio_scsi_handle_ctrl_vq(s, vq);
 }

This race is not reproduced for me in our 2.6 based branch.

 block/block-backend.c | 7 +++++++
 1 file changed, 7 insertions(+)
block/block-backend.c +7 -0
index 5742c09c2c..6d5044228e 100644
@@ -65,6 +65,8 @@ struct BlockBackend {
     bool allow_write_beyond_eof;
 
     NotifierList remove_bs_notifiers, insert_bs_notifiers;
+
+    AioContext *aio_context;
 };
 
 typedef struct BlockBackendAIOCB {
@@ -559,6 +561,10 @@ int blk_insert_bs(BlockBackend *blk, BlockDriverState *bs, Error **errp)
     }
     bdrv_ref(bs);
 
+    if (blk->aio_context != NULL) {
+        bdrv_set_aio_context(bs, blk->aio_context);
+    }
+
     notifier_list_notify(&blk->insert_bs_notifiers, blk);
     if (blk->public.throttle_state) {
         throttle_timers_attach_aio_context(
@@ -1607,6 +1613,7 @@ void blk_set_aio_context(BlockBackend *blk, AioContext *new_context)
 {
     BlockDriverState *bs = blk_bs(blk);
 
+    blk->aio_context = new_context;
     if (bs) {
         if (blk->public.throttle_state) {
             throttle_timers_detach_aio_context(&blk->public.throttle_timers);
Signature · 1 line
2.11.1
#2 lore raw
Quoted 23 lines · Kevin Wolf

Am 14.03.2017 um 18:11 hat Vladimir Sementsov-Ogievskiy geschrieben:

Quoted 7 lines

If we have separate iothread for cdrom, we lose connection to it on qmp_blockdev_change_medium, as aio_context is on bds which is dropped and switched with new one.

As an example result, after such media change we have crash on
virtio_scsi_ctx_check: Assertion `blk_get_aio_context(d->conf.blk) == s->ctx' failed.

Quoted 8 lines

---

Hi all!

We've faced into this assert, and there some kind of fix. I don't sure that such fix doesn't break some conceptions, in this case, I hope, someone will propose a true-way solution.

The "true way" would be proper AioContext management in the sense that all users of a BDS can specify a specific AioContext that they need and if they all agree, callbacks are invoked to change everyone to that AioContext. If they conflict, attaching the new user would have to error out.

Quoted 4 lines

But we discussed this earlier, and while I'm not completely sure any more about the details, I seem to remeber that Paolo said something along the lines that AioContext is going away anyway and building the code for proper management would be wasted time.

Matches my impression.

Quoted 4 lines

Stefan, Paolo, do you remember the details why we didn't even do a simple fix like the one below? I think there were some patches on the list, no?

ISTM the concern was mostly "what about other BB in the graph?"

Should the new op blocker API be used in this one (a new type of perm)?

Quoted 10 lines

Kevin

Quoted 7 lines

======
Also, on master branch I can't reproduce it as vm crashed earlier, without any eject/change, on assert(s->ctx && s->dataplane_started) in virtio_scsi_data_plane_handle_ctrl(). It looks like race with virtio_scsi_dataplane_start(), and for test (to reproduce assert described above), I've "fixed" it with just:

Quoted 5 lines

Review static bool virtio_scsi_data_plane_handle_ctrl(VirtIODevice *vdev, · line 66

Quoted 5 lines
(quoted diff) +1 -0
@@ -63,6 +63,7 @@ static bool virtio_scsi_data_plane_handle_ctrl(VirtIODevice *vdev,
 {
     VirtIOSCSI *s = VIRTIO_SCSI(vdev);
 
+    sleep(10);

This will be fixed by

https://lists.gnu.org/archive/html/qemu-devel/2017-03/msg02659.html

Fam

#3 lore raw

Am 15.03.2017 um 12:14 hat Fam Zheng geschrieben:

Quoted 32 lines · Kevin Wolf
Quoted 23 lines

Am 14.03.2017 um 18:11 hat Vladimir Sementsov-Ogievskiy geschrieben:

Quoted 7 lines

If we have separate iothread for cdrom, we lose connection to it on qmp_blockdev_change_medium, as aio_context is on bds which is dropped and switched with new one.

As an example result, after such media change we have crash on
virtio_scsi_ctx_check: Assertion `blk_get_aio_context(d->conf.blk) == s->ctx' failed.

Quoted 8 lines

---

Hi all!

We've faced into this assert, and there some kind of fix. I don't sure that such fix doesn't break some conceptions, in this case, I hope, someone will propose a true-way solution.

The "true way" would be proper AioContext management in the sense that all users of a BDS can specify a specific AioContext that they need and if they all agree, callbacks are invoked to change everyone to that AioContext. If they conflict, attaching the new user would have to error out.

Quoted 4 lines

But we discussed this earlier, and while I'm not completely sure any more about the details, I seem to remeber that Paolo said something along the lines that AioContext is going away anyway and building the code for proper management would be wasted time.

Matches my impression.

Quoted 1 line
Quoted 7 lines
Quoted 3 lines

Stefan, Paolo, do you remember the details why we didn't even do a simple fix like the one below? I think there were some patches on the list, no?

ISTM the concern was mostly "what about other BB in the graph?"

Should the new op blocker API be used in this one (a new type of perm)?

If we know what operation to block, that's an option. Would "change the node's AioContext" work for it?

I think it would effectively mean that you need to attach the device first and then jobs etc. respect the AioContext, whereas the opposite order breaks because they don't have callbacks to adjust the AioContext after the fact.

This seems to match what's actually safe, so it might really be as easy as this.

Kevin

#4 lore raw
Quoted 12 lines · Kevin Wolf
Quoted 8 lines
Quoted 4 lines

Stefan, Paolo, do you remember the details why we didn't even do a simple fix like the one below? I think there were some patches on the list, no?

ISTM the concern was mostly "what about other BB in the graph?"

Should the new op blocker API be used in this one (a new type of perm)?

If we know what operation to block, that's an option. Would "change the node's AioContext" work for it?

Quoted 7 lines

I think it would effectively mean that you need to attach the device first and then jobs etc. respect the AioContext, whereas the opposite order breaks because they don't have callbacks to adjust the AioContext after the fact.

This seems to match what's actually safe, so it might really be as easy as this.

Yes, this sounds good to me.

Vladimir, would you like to implement this? It would be good to have this fixed in 2.9.

Fam

#5 lore raw
Quoted 9 lines · Fam Zheng
Quoted 8 lines · Kevin Wolf
Quoted 6 lines
Quoted 3 lines

Stefan, Paolo, do you remember the details why we didn't even do a simple fix like the one below? I think there were some patches on the list, no?

ISTM the concern was mostly "what about other BB in the graph?"

Should the new op blocker API be used in this one (a new type of perm)?

If we know what operation to block, that's an option. Would "change the node's AioContext" work for it?

we can start with empty cdrom, so there is no context at start

Quoted 6 lines
Quoted 6 lines

I think it would effectively mean that you need to attach the device first and then jobs etc. respect the AioContext, whereas the opposite order breaks because they don't have callbacks to adjust the AioContext after the fact.

Quoted 6 lines
Quoted 2 lines

This seems to match what's actually safe, so it might really be as easy as this.

Yes, this sounds good to me.

Vladimir, would you like to implement this? It would be good to have this fixed in 2.9.

I don't sure about how to do it, so, I don't mind someone else to implement this..

Quoted 2 lines

Fam

Signature · 2 lines
Best regards,
Vladimir
#6 lore raw
Quoted 5 lines · Vladimir Sementsov-Ogievskiy
Quoted 4 lines · Fam Zheng
Quoted 3 lines · Kevin Wolf
Quoted 3 lines
Quoted 3 lines

Stefan, Paolo, do you remember the details why we didn't even do a simple fix like the one below? I think there were some patches on the list, no?

Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

ISTM the concern was mostly "what about other BB in the graph?"

Should the new op blocker API be used in this one (a new type of perm)?

If we know what operation to block, that's an option. Would "change the node's AioContext" work for it?

we can start with empty cdrom, so there is no context at start

Practically, I agree this patch is fine for now because callers don't arbitrarily move BDS from one context to another, only a small set of operations exists - start/stop data plane, block job callbacks. The problem is that new code in the future can cause trouble if different BBs in the same graph don't agree on what context they can run on, especially with dynamical reconfiguration. So the previous discussions were more about an API that works generally.

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

I think it would effectively mean that you need to attach the device first and then jobs etc. respect the AioContext, whereas the opposite order breaks because they don't have callbacks to adjust the AioContext after the fact.

This seems to match what's actually safe, so it might really be as easy as this.

Quoted 7 lines
Quoted 4 lines

Yes, this sounds good to me.

Vladimir, would you like to implement this? It would be good to have this fixed in 2.9.

I don't sure about how to do it, so, I don't mind someone else to implement this..

OK, I can take a look at this tomorrow.

Fam

#7 lore raw
In reply to Kevin Wolf
Quoted 4 lines · Kevin Wolf

But we discussed this earlier, and while I'm not completely sure any more about the details, I seem to remeber that Paolo said something along the lines that AioContext is going away anyway and building the code for proper management would be wasted time.

AioContext is going to stay, but everybody will be able to send operations to a BB/BDS from any AioContext. The BDS AioContext will only matter for network devices, since they have to attach the file descriptor handlers somewhere. For files it won't matter at all because you can use multiple Linux AIO context or thread pools at the same time.

There should be a policy on which BB sets AioContext on the BDS (e.g. only the device does it), but apart from that, it should not be an issue.

Paolo

Quoted 62 lines

Stefan, Paolo, do you remember the details why we didn't even do a simple fix like the one below? I think there were some patches on the list, no?

Kevin

Quoted 56 lines

======
Also, on master branch I can't reproduce it as vm crashed earlier, without any eject/change, on assert(s->ctx && s->dataplane_started) in virtio_scsi_data_plane_handle_ctrl(). It looks like race with virtio_scsi_dataplane_start(), and for test (to reproduce assert described above), I've "fixed" it with just:

(quoted diff) +1 -0
@@ -63,6 +63,7 @@ static bool virtio_scsi_data_plane_handle_ctrl(VirtIODevice *vdev,
 {
     VirtIOSCSI *s = VIRTIO_SCSI(vdev);
 
+    sleep(10);
     assert(s->ctx && s->dataplane_started);
     return virtio_scsi_handle_ctrl_vq(s, vq);
 }

This race is not reproduced for me in our 2.6 based branch.

 block/block-backend.c | 7 +++++++
 1 file changed, 7 insertions(+)
block/block-backend.c +7 -0
index 5742c09c2c..6d5044228e 100644
@@ -65,6 +65,8 @@ struct BlockBackend {
     bool allow_write_beyond_eof;
 
     NotifierList remove_bs_notifiers, insert_bs_notifiers;
+
+    AioContext *aio_context;
 };
 
 typedef struct BlockBackendAIOCB {
@@ -559,6 +561,10 @@ int blk_insert_bs(BlockBackend *blk, BlockDriverState *bs, Error **errp)
     }
     bdrv_ref(bs);
 
+    if (blk->aio_context != NULL) {
+        bdrv_set_aio_context(bs, blk->aio_context);
+    }
+
     notifier_list_notify(&blk->insert_bs_notifiers, blk);
     if (blk->public.throttle_state) {
         throttle_timers_attach_aio_context(
@@ -1607,6 +1613,7 @@ void blk_set_aio_context(BlockBackend *blk, AioContext *new_context)
 {
     BlockDriverState *bs = blk_bs(blk);
 
+    blk->aio_context = new_context;
     if (bs) {
         if (blk->public.throttle_state) {
             throttle_timers_detach_aio_context(&blk->public.throttle_timers);
Signature · 1 line
2.11.1
#8 lore raw

Am 15.03.2017 um 14:39 hat Paolo Bonzini geschrieben:

Quoted 11 lines · Kevin Wolf
Quoted 4 lines

But we discussed this earlier, and while I'm not completely sure any more about the details, I seem to remeber that Paolo said something along the lines that AioContext is going away anyway and building the code for proper management would be wasted time.

AioContext is going to stay, but everybody will be able to send operations to a BB/BDS from any AioContext. The BDS AioContext will only matter for network devices, since they have to attach the file descriptor handlers somewhere. For files it won't matter at all because you can use multiple Linux AIO context or thread pools at the same time.

Should the iothread option then become a -blockdev option rather than a -device one?

Quoted 2 lines

There should be a policy on which BB sets AioContext on the BDS (e.g. only the device does it), but apart from that, it should not be an issue.

We don't know which BBs are going to be attached. We don't necessarily have a device at all, or we could have two of them.

Though maybe we should try to keep a BDS and its children in the same AioContext anyway if that's possible? Will it make a difference?

Kevin

#9 lore raw
Quoted 7 lines · Kevin Wolf

Am 15.03.2017 um 14:39 hat Paolo Bonzini geschrieben:

Quoted 6 lines · Kevin Wolf
Quoted 4 lines

But we discussed this earlier, and while I'm not completely sure any more about the details, I seem to remeber that Paolo said something along the lines that AioContext is going away anyway and building the code for proper management would be wasted time.

Quoted 8 lines
Quoted 5 lines

AioContext is going to stay, but everybody will be able to send operations to a BB/BDS from any AioContext. The BDS AioContext will only matter for network devices, since they have to attach the file descriptor handlers somewhere. For files it won't matter at all because you can use multiple Linux AIO context or thread pools at the same time.

Should the iothread option then become a -blockdev option rather than a -device one?

Well, both. The device also needs an I/O thread to attach its ioeventfd handler. And it makes sense to use the -device I/O thread if -blockdev specified none.

Quoted 5 lines
Quoted 2 lines

There should be a policy on which BB sets AioContext on the BDS (e.g. only the device does it), but apart from that, it should not be an issue.

We don't know which BBs are going to be attached. We don't necessarily have a device at all, or we could have two of them.

Wow, can we really have two? :-O

Quoted 2 lines

Though maybe we should try to keep a BDS and its children in the same AioContext anyway if that's possible? Will it make a difference?

Everything can make sense---but yes, keeping the whole hierarchy in the same AioContext makes sense more often.

Paolo

#10 lore raw

Am 15.03.2017 um 15:43 hat Paolo Bonzini geschrieben:

Quoted 14 lines · Kevin Wolf
Quoted 13 lines

Am 15.03.2017 um 14:39 hat Paolo Bonzini geschrieben:

Quoted 11 lines · Kevin Wolf
Quoted 4 lines

But we discussed this earlier, and while I'm not completely sure any more about the details, I seem to remeber that Paolo said something along the lines that AioContext is going away anyway and building the code for proper management would be wasted time.

AioContext is going to stay, but everybody will be able to send operations to a BB/BDS from any AioContext. The BDS AioContext will only matter for network devices, since they have to attach the file descriptor handlers somewhere. For files it won't matter at all because you can use multiple Linux AIO context or thread pools at the same time.

Quoted 6 lines
Quoted 2 lines

Should the iothread option then become a -blockdev option rather than a -device one?

Well, both. The device also needs an I/O thread to attach its ioeventfd handler. And it makes sense to use the -device I/O thread if -blockdev specified none.

Right, that makes sense. I just wasn't aware until now that we would get a per-node option, so that's good to know.

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

There should be a policy on which BB sets AioContext on the BDS (e.g. only the device does it), but apart from that, it should not be an issue.

We don't know which BBs are going to be attached. We don't necessarily have a device at all, or we could have two of them.

Wow, can we really have two? :-O

What would prevent you from doing this? The whole blockdev work was about making the block layer more flexible, so now we have this flexibility of attaching more or less anything to anything (unless op blockers prevent it, which is why they are important for actually supporting blockdev).

Quoted 5 lines
Quoted 2 lines

Though maybe we should try to keep a BDS and its children in the same AioContext anyway if that's possible? Will it make a difference?

Everything can make sense---but yes, keeping the whole hierarchy in the same AioContext makes sense more often.

So I take this to mean that it does make a difference. :-)

If we want to keep users and their child nodes in the same AioContext by default, we'll probably still need to implement all of the callbacks that we would need for proper AioContext management today.

Kevin

#11 lore raw
Quoted 18 lines · Kevin Wolf

Am 15.03.2017 um 15:43 hat Paolo Bonzini geschrieben:

Quoted 17 lines · Kevin Wolf
Quoted 15 lines

Am 15.03.2017 um 14:39 hat Paolo Bonzini geschrieben:

Quoted 11 lines · Kevin Wolf
Quoted 4 lines

But we discussed this earlier, and while I'm not completely sure any more about the details, I seem to remeber that Paolo said something along the lines that AioContext is going away anyway and building the code for proper management would be wasted time.

AioContext is going to stay, but everybody will be able to send operations to a BB/BDS from any AioContext. The BDS AioContext will only matter for network devices, since they have to attach the file descriptor handlers somewhere. For files it won't matter at all because you can use multiple Linux AIO context or thread pools at the same time.

Should the iothread option then become a -blockdev option rather than a -device one?

Quoted 6 lines
Quoted 3 lines

Well, both. The device also needs an I/O thread to attach its ioeventfd handler. And it makes sense to use the -device I/O thread if -blockdev specified none.

Right, that makes sense. I just wasn't aware until now that we would get a per-node option, so that's good to know.

I hadn't thought about it either. :)

Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
Quoted 2 lines

There should be a policy on which BB sets AioContext on the BDS (e.g. only the device does it), but apart from that, it should not be an issue.

We don't know which BBs are going to be attached. We don't necessarily have a device at all, or we could have two of them.

Quoted 7 lines
Quoted 1 line

Wow, can we really have two? :-O

What would prevent you from doing this? The whole blockdev work was about making the block layer more flexible, so now we have this flexibility of attaching more or less anything to anything (unless op blockers prevent it, which is why they are important for actually supporting blockdev).

Yeah, the actual question was more "will the blockers allow two" devices behind the same BDS. But I suppose there's no reason to prevent that (emulating multipath, for example).

Quoted 11 lines
Quoted 5 lines
Quoted 2 lines

Though maybe we should try to keep a BDS and its children in the same AioContext anyway if that's possible? Will it make a difference?

Everything can make sense---but yes, keeping the whole hierarchy in the same AioContext makes sense more often.

So I take this to mean that it does make a difference. :-)

If we want to keep users and their child nodes in the same AioContext by default, we'll probably still need to implement all of the callbacks that we would need for proper AioContext management today.

Or just assume that in the common case people won't specify iothread on -blockdev, only on -device.

Paolo

#12 lore raw

Am 15.03.2017 um 16:09 hat Paolo Bonzini geschrieben:

Quoted 14 lines
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
Quoted 2 lines

There should be a policy on which BB sets AioContext on the BDS (e.g. only the device does it), but apart from that, it should not be an issue.

We don't know which BBs are going to be attached. We don't necessarily have a device at all, or we could have two of them.

Quoted 7 lines
Quoted 1 line

Wow, can we really have two? :-O

What would prevent you from doing this? The whole blockdev work was about making the block layer more flexible, so now we have this flexibility of attaching more or less anything to anything (unless op blockers prevent it, which is why they are important for actually supporting blockdev).

Quoted 3 lines

Yeah, the actual question was more "will the blockers allow two" devices behind the same BDS. But I suppose there's no reason to prevent that (emulating multipath, for example).

For read-only devices, there's no reason anyway. For writable ones, you have to set the share-rw=on qdev property, but then it's allowed.

Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
Quoted 2 lines

Though maybe we should try to keep a BDS and its children in the same AioContext anyway if that's possible? Will it make a difference?

Everything can make sense---but yes, keeping the whole hierarchy in the same AioContext makes sense more often.

Quoted 8 lines
Quoted 5 lines

So I take this to mean that it does make a difference. :-)

If we want to keep users and their child nodes in the same AioContext by default, we'll probably still need to implement all of the callbacks that we would need for proper AioContext management today.

Or just assume that in the common case people won't specify iothread on -blockdev, only on -device.

Right, but then attaching a new device could mean that the BDS moves to a different AioContext even though the other users are still on the old one. Not sure if this is bad, but it might be unexpected.

Kevin