We use kzalloc() to allocate scsi_disk, no need to reset ->openers. Signed-off-by: Guo Chao <yan@xxxxxxxxxxxxxxxxxx> --- drivers/scsi/sd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index e934ffc..d3b66a2 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -2897,7 +2897,6 @@ static int sd_probe(struct device *dev) sdkp->driver = &sd_template; sdkp->disk = gd; sdkp->index = index; - atomic_set(&sdkp->openers, 0); atomic_set(&sdkp->device->ioerr_cnt, 0); if (!sdp->request_queue->rq_timeout) { -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html