-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DW-1381 fix BSOD when volume is removed during IO.
drbd sometimes get read irp after volume is removed, and gets crashed while getting drbd device via volume extension. get_device_with_vol_ext() assumes that volume extension has valid block devices, which is wrong. added checking couple of conditions to avoid accessing nullified block device. 1. get_device_with_vol_ext() fails if the member dev of volume extension is NULL. 2. get_device_with_vol_ext() fails if it fails to acquire volume remove lock. (it means the volume is being removed) 3. setting dev as NULL has been moved to delete_drbd_block_device() from mvolRemoveDevice()
- Loading branch information
1 parent
d236498
commit 7705b82
Showing
5 changed files
with
35 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters