linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] scsi_debug: delay stress fix
@ 2018-01-10 21:57 Douglas Gilbert
  2018-01-10 21:57 ` [PATCH 1/1] " Douglas Gilbert
  0 siblings, 1 reply; 4+ messages in thread
From: Douglas Gilbert @ 2018-01-10 21:57 UTC (permalink / raw)
  To: linux-scsi; +Cc: martin.petersen, jejb, bart.vanassche, hare

Bart Van Assche reported that when the scsi_debug driver was being
stress tested with fio, changing the delay paremeter via sysfs
caused a cascade of oops-es. The fix presented reads the driver
wide delay values (jiffies or nanoseconds) once and remembers in
the sdebug_defer object which defer method is used and which 
method has been initialized. This simplifies handling when command
aborts occur.

This causes a minor changes in semantic: a SCSI command "in
flight" is no longer impacted by changing the delay option
after it has been scheduled (i.e. while it is waiting for a work
queue or a hr timer to exhaust).

Douglas Gilbert (1):
  scsi_debug: delay fix

 drivers/scsi/scsi_debug.c | 72 ++++++++++++++++++++++++++++++-----------------
 1 file changed, 46 insertions(+), 26 deletions(-)

-- 
2.14.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-01-17  6:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-10 21:57 [PATCH 0/1] scsi_debug: delay stress fix Douglas Gilbert
2018-01-10 21:57 ` [PATCH 1/1] " Douglas Gilbert
2018-01-17  0:32   ` Bart Van Assche
2018-01-17  6:00   ` Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).