public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* scsi_debug: shared dev context, BUG or FEATURE?
@ 2017-03-27 17:35 Dmitry Monakhov
  2017-03-28  1:41 ` Martin K. Petersen
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Monakhov @ 2017-03-27 17:35 UTC (permalink / raw)
  To: LKML; +Cc: dgilbert, martin.petersen

Hi scsi_debug has very strange structure
from one point it supports dynamic number of devices
but from other point context is common for all devices:
 - dif_storep (array of t10 dif tuples)
 - map_storep (block map for thinprovision)
 - fake_storep (in memory data storage)
 - sdebug_q_arr (queue array)
So basically we may have many devices with single context which refers
common data. Are any sane reason to share context between devices?
Who use such behaviour?

IMHO this is a pure bug. Please correct me if I'm wrong, I'll plan to
fix that by allocation separate context for each dev. 

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

end of thread, other threads:[~2017-03-28 10:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-27 17:35 scsi_debug: shared dev context, BUG or FEATURE? Dmitry Monakhov
2017-03-28  1:41 ` Martin K. Petersen
2017-03-28 10:36   ` Dmitry Monakhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox