linux/drivers/block/drbd
Lars Ellenberg 4589d7f829 drbd_disconnect: grab meta.socket mutex as well
Fixes a race and potential kernel panic if e.g. the worker was just
about to send a few P_RS_IS_IN_SYNC via the meta socket for checksum
based resync, while the receiver destroys the sockets in
drbd_disconnect.

To make sure no-one is using the meta socket,
it is not enough to stop the asender...
Grab the meta socket mutex before destroying it.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
2010-03-11 16:02:45 +01:00
..
drbd_actlog.c drbd: remove tracing bits 2009-10-01 21:17:58 +02:00
drbd_bitmap.c block: drbd: Convert semaphore to mutex 2010-03-11 13:30:16 +01:00
drbd_int.h drbd: --dry-run option for drbdsetup net ( drbdadm -- --dry-run connect <res> ) 2010-03-11 15:51:23 +01:00
drbd_main.c drbd_disconnect: grab meta.socket mutex as well 2010-03-11 16:02:45 +01:00
drbd_nl.c drbd: fix NULL pointer dereference on 4k hard sect size 2010-03-11 15:58:25 +01:00
drbd_proc.c drbd: Constify struct file_operations 2009-12-21 12:45:15 +01:00
drbd_receiver.c drbd_disconnect: grab meta.socket mutex as well 2010-03-11 16:02:45 +01:00
drbd_req.c drbd_req.c: use part_[inc|dec]_in_flight() 2009-12-03 17:40:51 +01:00
drbd_req.h dropping unneeded include autoconf.h 2009-10-01 21:17:54 +02:00
drbd_strings.c
drbd_vli.h
drbd_worker.c fix unit of rs_same_csums accounting 2010-03-11 16:01:38 +01:00
drbd_wrappers.h
Kconfig drbd: Kconfig fix 2009-12-29 17:38:28 +01:00
Makefile drbd: remove tracing bits 2009-10-01 21:17:58 +02:00