Bug 195607 - Megaraid_sas raidcard hotswap wouldn't work if hold the fd of block devcie in user space
Summary: Megaraid_sas raidcard hotswap wouldn't work if hold the fd of block devcie in...
Status: NEW
Alias: None
Product: SCSI Drivers
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: scsi_drivers-other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-28 08:29 UTC by Zhou Zhengping
Modified: 2017-04-28 08:29 UTC (History)
0 users

See Also:
Kernel Version: 3.10.0
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Zhou Zhengping 2017-04-28 08:29:03 UTC
reproduce :

1.choose a megaraid sas series raidcard, for example:
LSI Logic / Symbios Logic MegaRAID SAS 2008 [Falcon] (rev 03)

2. configure the raid card as HBA card (all disks are jbod mode)
We assume /dev/sdb is attached to this raid card

3.run process:
fd = open("/dev/sdb", O_RDWR);
while (1) {
    sleep (10);
}

4. run "udevadm monitor" watch udev message in a new shell

5.unplug disk sdb and then insert 

We can see new udev message about disk's hotswap

6.redo process 5
There will be no udev message only if you reboot the server

Note You need to log in before you can comment on or make changes to this bug.