Re: [PATCH] scsi: core: try to get module before removing devcie

2019-10-17 Thread Martin K. Petersen
>> We have a test case like block/001 in blktests, which will create a >> scsi device by loading scsi_debug module and then try to delete the >> device by sysfs interface. At the same time, it may remove the >> scsi_debug module. Applied to 5.4/scsi-fixes, thanks! > Please consider to contribut

Re: [PATCH] scsi: core: try to get module before removing devcie

2019-10-16 Thread Bart Van Assche
On 2019-10-15 06:05, Yufen Yu wrote: > We have a test case like block/001 in blktests, which will > create a scsi device by loading scsi_debug module and then > try to delete the device by sysfs interface. At the same time, > it may remove the scsi_debug module. Please consider to contribute the t

[PATCH] scsi: core: try to get module before removing devcie

2019-10-15 Thread Yufen Yu
We have a test case like block/001 in blktests, which will create a scsi device by loading scsi_debug module and then try to delete the device by sysfs interface. At the same time, it may remove the scsi_debug module. And getting a invalid paging request BUG_ON as following: [ 34.625854] BUG: u