linux/drivers/block/drbd
Lars Ellenberg 6434f404b4 drbd: fix refcount error during detach of an already failed disk
A D_FAILED disk transitions as quickly as possible to
D_DISKLESS. But in the "unresponsive local disk" case,
there remains a time window where a administrative detach command could
find the disk already failed, but some internal meta data IO against the
unresponsive local disk still pending.

In that case, drbd_md_get_buffer() will return NULL.
Don't unconditionally call drbd_md_put_buffer(), or it will cause
refcount imbalance, and prevent any further re-attach on this volume
(until it is deleted and re-created).

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2015-11-25 09:22:01 -07:00
..
drbd_actlog.c block: add a bi_error field to struct bio 2015-07-29 08:55:15 -06:00
drbd_bitmap.c Merge branch 'akpm' (patches from Andrew) 2015-11-07 14:32:45 -08:00
drbd_debugfs.c
drbd_debugfs.h
drbd_int.h drbd: improve network timeout detection 2015-11-25 09:22:01 -07:00
drbd_interval.c
drbd_interval.h
drbd_main.c drbd: Fix locking across all resources 2015-11-25 09:22:00 -07:00
drbd_nl.c drbd: fix refcount error during detach of an already failed disk 2015-11-25 09:22:01 -07:00
drbd_nla.c
drbd_nla.h
drbd_proc.c drbd: Move enum write_ordering_e to drbd.h 2015-11-25 09:22:00 -07:00
drbd_protocol.h
drbd_receiver.c drbd: Backport the "events2" command 2015-11-25 09:22:00 -07:00
drbd_req.c drbd: improve network timeout detection 2015-11-25 09:22:01 -07:00
drbd_req.h drbd: De-inline drbd_should_do_remote() and drbd_should_send_out_of_sync() 2015-11-25 09:22:00 -07:00
drbd_state_change.h drbd: Backport the "events2" command 2015-11-25 09:22:00 -07:00
drbd_state.c drbd: fix NULL deref in remember_new_state 2015-11-25 09:22:01 -07:00
drbd_state.h drbd: Fix locking across all resources 2015-11-25 09:22:00 -07:00
drbd_strings.c
drbd_strings.h
drbd_vli.h
drbd_worker.c drbd: improve network timeout detection 2015-11-25 09:22:01 -07:00
Kconfig
Makefile