RE: [PATCH 1/2] scsi: ufs: fix reference counting of W-LUs

2014-11-21 Thread Subhash Jadavani
Jadavani; Yaniv Gardi; Sujit Reddy Thumma; Christoph Hellwig; James E.J. Bottomley Subject: [PATCH 1/2] scsi: ufs: fix reference counting of W-LUs UFS driver adds three well known LUs in the initialization, but those reference counts are not decremented, so it makes ufshcd module impossible to unload

[PATCH 1/2] scsi: ufs: fix reference counting of W-LUs

2014-11-18 Thread Akinobu Mita
UFS driver adds three well known LUs in the initialization, but those reference counts are not decremented, so it makes ufshcd module impossible to unload. This fixes it by putting scsi_device_put() in the initalization, and in order to protect concurrent access to hba-sdev_ufs_device (UFS Device