Skip to content

Commit

Permalink
nbd: Remove fixme that was already fixed
Browse files Browse the repository at this point in the history
The mentioned problem is not present anymore.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
  • Loading branch information
Markus Pargmann authored and Jens Axboe committed Apr 2, 2015
1 parent d18509f commit e018e75
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions drivers/block/nbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e018e75

Please sign in to comment.