Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8586855 authored by Josef Bacik's avatar Josef Bacik Committed by Jens Axboe
Browse files

nbd: set queue timeout properly



We can't just set the timeout on the tagset, we have to set it on the
queue as it would have been setup already at this point.

Signed-off-by: default avatarJosef Bacik <jbacik@fb.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent c103b4da
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -844,7 +844,10 @@ static int __nbd_ioctl(struct block_device *bdev, struct nbd_device *nbd,
		nbd_size_set(nbd, bdev, nbd->blksize, arg);
		return 0;
	case NBD_SET_TIMEOUT:
		if (arg) {
			nbd->tag_set.timeout = arg * HZ;
			blk_queue_rq_timeout(nbd->disk->queue, arg * HZ);
		}
		return 0;

	case NBD_SET_FLAGS: