linux-sg2042/drivers/block/drbd
Lars Ellenberg 0ddc5549f8 drbd: silence some noisy log messages during disconnect
If we fail to send the information that we lost our disk,
we have no connection, and no disk: no access to data anymore.
That is either expected (deconfiguration), or there will be so much
noise in the logs that "Sending state failed" is not useful at all.
Drop it.

If the reason for a shorter than expected receive was a signal,
which we sent because we already decided to disconnect,
these additional log messages are confusing and useless.

This patch follows this pattern:
 - dev_warn(DEV, "short read expecting header on sock: r=%d\n", r);
 + if (!signal_pending(current))
 + 	dev_warn(DEV, "short read expecting header on sock: r=%d\n", r);

Also make them all dev_warn for consistency.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
2011-03-10 11:48:04 +01:00
..
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
drbd_actlog.c drbd: bitmap keep track of changes vs on-disk bitmap 2011-03-10 11:43:19 +01:00
drbd_bitmap.c drbd: describe bitmap locking for bulk operation in finer detail 2011-03-10 11:48:02 +01:00
drbd_int.h drbd: describe bitmap locking for bulk operation in finer detail 2011-03-10 11:48:02 +01:00
drbd_main.c drbd: silence some noisy log messages during disconnect 2011-03-10 11:48:04 +01:00
drbd_nl.c drbd: describe bitmap locking for bulk operation in finer detail 2011-03-10 11:48:02 +01:00
drbd_proc.c drbd: allow petabyte storage on 64bit arch 2011-03-10 11:43:24 +01:00
drbd_receiver.c drbd: silence some noisy log messages during disconnect 2011-03-10 11:48:04 +01:00
drbd_req.c drbd: Ensure that an epoch contains only requests of one kind 2011-03-10 11:45:42 +01:00
drbd_req.h drbd: Ensure that an epoch contains only requests of one kind 2011-03-10 11:45:42 +01:00
drbd_strings.c drbd: Rename enum drbd_state_ret_codes to enum drbd_state_rv 2011-03-10 11:36:18 +01:00
drbd_vli.h The DRBD driver 2009-10-01 21:17:49 +02:00
drbd_worker.c drbd: log UUIDs whenever they change 2011-03-10 11:48:01 +01:00
drbd_wrappers.h drbd: Get rid of unnecessary macros (2) 2011-03-10 11:36:15 +01:00