Re: scsi_debug: shared dev context, BUG or FEATURE?

2017-03-28 Thread Dmitry Monakhov
"Martin K. Petersen" writes: > Dmitry Monakhov writes: > > Dmitry, > >> 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: > >> So basically we may have many devices with single context which re

Re: scsi_debug: shared dev context, BUG or FEATURE?

2017-03-27 Thread Martin K. Petersen
Dmitry Monakhov writes: Dmitry, > 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: > So basically we may have many devices with single context which refers > common data. Are any sane reason to

scsi_debug: shared dev context, BUG or FEATURE?

2017-03-27 Thread Dmitry Monakhov
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 ar