Commit e018e757 authored by Markus Pargmann's avatar Markus Pargmann Committed by Jens Axboe

nbd: Remove fixme that was already fixed

The mentioned problem is not present anymore.
Signed-off-by: default avatarMarkus Pargmann <mpa@pengutronix.de>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent d18509f5
...@@ -110,14 +110,11 @@ static void nbd_end_request(struct nbd_device *nbd, struct request *req) ...@@ -110,14 +110,11 @@ static void nbd_end_request(struct nbd_device *nbd, struct request *req)
spin_unlock_irqrestore(q->queue_lock, flags); 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) 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) if (lock)
mutex_lock(&nbd->tx_lock); mutex_lock(&nbd->tx_lock);
if (nbd->sock) { if (nbd->sock) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment