Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1208396

[PATCH 05/10] nbd: Move clear queue debug message

From Markus Pargmann <mpa@pengutronix.de>
Newsgroups linux.kernel
Subject [PATCH 05/10] nbd: Move clear queue debug message
Date 2015-08-17 08:30 +0200
Message-ID <pYm5J-7AK-25@gated-at.bofh.it> (permalink)
References <pYm5I-7AK-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


This message was a warning without a reason. This patch moves it into
nbd_clear_que and transforms it to a debug message.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
---
 drivers/block/nbd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c
index 8bce05d0df5e..5601523a8336 100644
--- a/drivers/block/nbd.c
+++ b/drivers/block/nbd.c
@@ -468,6 +468,7 @@ static void nbd_clear_que(struct nbd_device *nbd)
 		req->errors++;
 		nbd_end_request(nbd, req);
 	}
+	dev_dbg(disk_to_dev(nbd->disk), "queue cleared\n");
 }
 
 
@@ -740,7 +741,6 @@ static int __nbd_ioctl(struct block_device *bdev, struct nbd_device *nbd,
 		sock = nbd->sock;
 		nbd->sock = NULL;
 		nbd_clear_que(nbd);
-		dev_warn(disk_to_dev(nbd->disk), "queue cleared\n");
 		kill_bdev(bdev);
 		queue_flag_clear_unlocked(QUEUE_FLAG_DISCARD, nbd->disk->queue);
 		set_device_ro(bdev, false);
-- 
2.4.6

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PULL 00/10] NBD updates for 4.3 Markus Pargmann <mpa@pengutronix.de> - 2015-08-17 08:30 +0200
  [PATCH 05/10] nbd: Move clear queue debug message Markus Pargmann <mpa@pengutronix.de> - 2015-08-17 08:30 +0200
  [PATCH 02/10] nbd: sock_shutdown, remove conditional lock Markus Pargmann <mpa@pengutronix.de> - 2015-08-17 08:30 +0200
  Re: [PULL 00/10] NBD updates for 4.3 Jens Axboe <axboe@kernel.dk> - 2015-08-17 16:30 +0200

csiph-web