linux-stable/drivers/staging/unisys
Tim Sell addce19f58 staging: unisys: respond to msgs post device_create
Fix problem that prevents us from responding to any device message after
device_create.

By neglecting to NULL out pending_msg_hdr after the device_create response,
we were effectively preventing any subsequent messages to the device from
working, because device_epilog() will correctly bail out early if it sees
that pending_msg_hdr is still set non-NULL, as that is an indicator to mean
that an unanswered message is still outstanding.

This problem was discovered as part of testing IOVM service partition
recovery, because device_epilog() was in fact bailing out when it was
called from my_device_changestate(), which of course prevented us from
transitioning the device to the paused state.  However, the incorrect
behavior would occur for ANY subsequent command directed at the device,
not just for changestate.

Signed-off-by: Tim Sell <Timothy.Sell@unisys.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-07-14 18:34:58 -07:00
..
Documentation staging: unisys: ABI documentation for new sysfs entries 2014-07-24 15:07:59 -07:00
include staging: unisys: define structures outside of iochannel 2015-06-16 14:33:51 -07:00
visorbus staging: unisys: respond to msgs post device_create 2015-07-14 18:34:58 -07:00
visornic staging: unisys: Add s-Par visornic ethernet driver 2015-06-16 14:34:55 -07:00
Kconfig staging: unisys: Add s-Par visornic ethernet driver 2015-06-16 14:34:55 -07:00
MAINTAINERS
Makefile staging: unisys: Add s-Par visornic ethernet driver 2015-06-16 14:34:55 -07:00
TODO