From 646fdb023dc2cfb6a9cb2b1545beed359074d37b Mon Sep 17 00:00:00 2001 From: Alexander Viro Date: Fri, 18 Oct 2002 05:25:04 -0700 Subject: [PATCH] nbd converted to private queue * switched to private queues * set ->queue and ->private_data * switched to use of ->bd_disk/->rq_disk * merged private blocksize, etc. arrays into nbd_dev[] * cleaned up --- include/linux/nbd.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'include/linux') diff --git a/include/linux/nbd.h b/include/linux/nbd.h index b20c045dbb79..49e702e51f98 100644 --- a/include/linux/nbd.h +++ b/include/linux/nbd.h @@ -74,12 +74,15 @@ struct nbd_device { #define NBD_READ_ONLY 0x0001 #define NBD_WRITE_NOCHK 0x0002 struct socket * sock; - struct file * file; /* If == NULL, device is not ready, yet */ - int magic; /* FIXME: not if debugging is off */ + struct file * file; /* If == NULL, device is not ready, yet */ + int magic; /* FIXME: not if debugging is off */ spinlock_t queue_lock; - struct list_head queue_head; /* Requests are added here... */ + struct list_head queue_head;/* Requests are added here... */ struct semaphore tx_lock; struct gendisk *disk; + int blksize; + int blksize_bits; + u64 bytesize; }; #endif -- cgit v1.2.3