RE: [PATCH RESEND] scsi_sysfs: protect against double execution of __scsi_remove_device()

2015-11-06 Thread KY Srinivasan
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Friday, November 6, 2015 7:49 AM > To: James E.J. Bottomley > Cc: linux-s...@vger.kernel.org; linux-kernel@vger.kernel.org; KY Srinivasan > ; Bart Van Assche > Subject: [PATCH RESEND

[PATCH RESEND] scsi_sysfs: protect against double execution of __scsi_remove_device()

2015-11-06 Thread Vitaly Kuznetsov
On some host errors storvsc module tries to remove sdev by scheduling a job which does the following: sdev = scsi_device_lookup(wrk->host, 0, 0, wrk->lun); if (sdev) { scsi_remove_device(sdev); scsi_device_put(sdev); } While this code seems correct the following crash is

[PATCH RESEND] scsi_sysfs: protect against double execution of __scsi_remove_device()

2015-11-06 Thread Vitaly Kuznetsov
On some host errors storvsc module tries to remove sdev by scheduling a job which does the following: sdev = scsi_device_lookup(wrk->host, 0, 0, wrk->lun); if (sdev) { scsi_remove_device(sdev); scsi_device_put(sdev); } While this code seems correct the following crash is

RE: [PATCH RESEND] scsi_sysfs: protect against double execution of __scsi_remove_device()

2015-11-06 Thread KY Srinivasan
osoft.com>; Bart Van Assche <bart.vanass...@sandisk.com> > Subject: [PATCH RESEND] scsi_sysfs: protect against double execution of > __scsi_remove_device() > > On some host errors storvsc module tries to remove sdev by scheduling a job > which does the following: > &g