diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-03-19 15:09:56 +0300 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-03-19 19:28:56 +0300 |
commit | c02e600280c605c761190ef82a6e6fa6aa7fb248 (patch) | |
tree | 3275148d08bfaa8374e3462a1bcab7cfc4788f7c /drivers/scsi/sd.c | |
parent | 4d4109d0eb6930e59942d019980b83af679f187b (diff) | |
download | linux-c02e600280c605c761190ef82a6e6fa6aa7fb248.tar.xz |
[SCSI] sd, sr: do not emit change event at device add
Initialize the "state changed" flag, so we do not send a change event
immediately after registering a new device.
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/sd.c')
-rw-r--r-- | drivers/scsi/sd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index 7aee64dbfbeb..5fe7aaed904c 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -1654,6 +1654,7 @@ static int sd_probe(struct device *dev) sdkp->disk = gd; sdkp->index = index; sdkp->openers = 0; + sdkp->previous_state = 1; if (!sdp->timeout) { if (sdp->type != TYPE_MOD) |