[PATCH] vmw_pvscsi: return SUCCESS for successful command aborts

2016-10-28 Thread David Jeffery
using completion_done(), vmw_pvscsi should just use the return value from wait_for_completion_timeout() to know if the wait timed out or not. Signed-off-by: David Jeffery --- vmw_pvscsi.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/drivers/scsi/vmw_pvscsi.c +++ b/drivers

[PATCH] sd: medium access timeout counter fails to reset

2014-04-10 Thread David Jeffery
ext command to time out (however far in time from the first failure) will trigger the medium access timeout and put the device offline. The resetting of sdkp->medium_access_timed_out should occur before the check for sense data. Signed-off-by: David Jeffery --- To reproduce using scsi_debu

[PATCH RESEND] sd: disk offlined prematurely from media access timeout

2013-09-24 Thread David Jeffery
sense data. Signed-off-by: David Jeffery --- It can be reproduced using scsi_debug and using SCSI_DEBUG_OPT_MAC_TIMEOUT to force some I/O to timeout once. This small script assumes /dev/sdb as scsi_debug's disk, causes a timeout, completes 2MB of I/O successfully including the timed out I

[PATCH]scsi disk: disk offline prematurely from medium access timeout

2013-08-29 Thread David Jeffery
sense data. Signed-off-by: David Jeffery --- To reproduce using scsi_debug, use SCSI_DEBUG_OPT_TIMEOUT or SCSI_DEBUG_OPT_MAC_TIMEOUT to force an I/O command to timeout. Then, remove the opt value so the I/O will succeed on retry. Perform more I/O as desired. Finally, repeat the process to mak