summaryrefslogtreecommitdiffstats
path: root/drivers/block/nbd.c
diff options
context:
space:
mode:
authorMarkus Pargmann2015-04-02 10:11:39 +0200
committerJens Axboe2015-04-02 20:39:24 +0200
commite018e7570c8b0f9f5a4bb0e1eff9b1e7f768f49b (patch)
tree695cc18c8c39becb64f9bf78b69d2f27e8897cca /drivers/block/nbd.c
parentnbd: Restructure debugging prints (diff)
downloadkernel-qcow2-linux-e018e7570c8b0f9f5a4bb0e1eff9b1e7f768f49b.tar.gz
kernel-qcow2-linux-e018e7570c8b0f9f5a4bb0e1eff9b1e7f768f49b.tar.xz
kernel-qcow2-linux-e018e7570c8b0f9f5a4bb0e1eff9b1e7f768f49b.zip
nbd: Remove fixme that was already fixed
The mentioned problem is not present anymore. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block/nbd.c')
-rw-r--r--drivers/block/nbd.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c
index 9e553a753410..ef57e7d83aed 100644
--- a/drivers/block/nbd.c
+++ b/drivers/block/nbd.c
@@ -110,14 +110,11 @@ static void nbd_end_request(struct nbd_device *nbd, struct request *req)
spin_unlock_irqrestore(q->queue_lock, flags);
}
+/*
+ * Forcibly shutdown the socket causing all listeners to error
+ */
static void sock_shutdown(struct nbd_device *nbd, int lock)
{
- /* Forcibly shutdown the socket causing all listeners
- * to error
- *
- * FIXME: This code is duplicated from sys_shutdown, but
- * there should be a more generic interface rather than
- * calling socket ops directly here */
if (lock)
mutex_lock(&nbd->tx_lock);
if (nbd->sock) {