diff options
author | Lars Ellenberg <lars.ellenberg@linbit.com> | 2011-05-02 11:51:31 +0200 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2012-11-08 16:53:01 +0100 |
commit | 009ba89db5ae836949009f97a00abb96feba69f4 (patch) | |
tree | 34218da1ee3796a5a77603bc162eaad22cce3469 /include/linux/drbd_limits.h | |
parent | 992d6e91d3654c11c2e4d8d5933ffbf82a0440f0 (diff) |
drbd: fix schedule in atomic
An administrative detach used to request a state change directly to D_DISKLESS,
first suspending IO to avoid the last put_ldev() occuring from an endio handler,
potentially in irq context.
This is not enough on the receiving side (typically secondary), we may miss
some peer_req on the way to local disk, which then may do the last put_ldev()
from their drbd_peer_request_endio().
This patch makes the detach always go through the intermediate D_FAILED state.
We may consider to rename it D_DETACHING.
Alternative approach would be to create yet an other work item to be scheduled
on the worker, do the destructor work from there, and get the timing right.
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Diffstat (limited to 'include/linux/drbd_limits.h')
0 files changed, 0 insertions, 0 deletions