Skip to content

Commit a39ef1a

Browse files
committed
Merge branch 'for-4.1/drivers' of git://git.kernel.dk/linux-block
Pull block driver updates from Jens Axboe: "This is the block driver pull request for 4.1. As with the core bits, this is a relatively slow round. This pull request contains: - Various fixes and cleanups for NVMe, from Alexey Khoroshilov, Chong Yuan, myself, Keith Busch, and Murali Iyer. - Documentation and code cleanups for nbd from Markus Pargmann. - Change of brd maintainer to me, from Ross Zwisler. At least the email doesn't bounce anymore then. - Two xen-blkback fixes from Tao Chen" * 'for-4.1/drivers' of git://git.kernel.dk/linux-block: (23 commits) NVMe: Meta data handling through submit io ioctl NVMe: Add translation for block limits NVMe: Remove check for null NVMe: Fix error handling of class_create("nvme") xen-blkback: define pr_fmt macro to avoid the duplication of DRV_PFX xen-blkback: enlarge the array size of blkback name nbd: Return error pointer directly nbd: Return error code directly nbd: Remove fixme that was already fixed nbd: Restructure debugging prints nbd: Fix device bytesize type nbd: Replace kthread_create with kthread_run nbd: Remove kernel internal header Documentation: nbd: Add list of module parameters Documentation: nbd: Reformat to allow more documentation NVMe: increase depth of admin queue nvme: Fix PRP list calculation for non-4k system page size NVMe: Fix blk-mq hot cpu notification NVMe: embedded iod mask cleanup NVMe: Freeze admin queue on device failure ...
2 parents d82312c + 976f2ab commit a39ef1a

12 files changed

Lines changed: 242 additions & 302 deletions

File tree

‎Documentation/blockdev/nbd.txt‎

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,31 @@
1-
Network Block Device (TCP version)
2-
3-
What is it: With this compiled in the kernel (or as a module), Linux
4-
can use a remote server as one of its block devices. So every time
5-
the client computer wants to read, e.g., /dev/nb0, it sends a
6-
request over TCP to the server, which will reply with the data read.
7-
This can be used for stations with low disk space (or even diskless)
8-
to borrow disk space from another computer.
9-
Unlike NFS, it is possible to put any filesystem on it, etc.
10-
11-
For more information, or to download the nbd-client and nbd-server
12-
tools, go to http://nbd.sf.net/.
13-
14-
The nbd kernel module need only be installed on the client
15-
system, as the nbd-server is completely in userspace. In fact,
16-
the nbd-server has been successfully ported to other operating
17-
systems, including Windows.
1+
Network Block Device (TCP version)
2+
==================================
3+
4+
1) Overview
5+
-----------
6+
7+
What is it: With this compiled in the kernel (or as a module), Linux
8+
can use a remote server as one of its block devices. So every time
9+
the client computer wants to read, e.g., /dev/nb0, it sends a
10+
request over TCP to the server, which will reply with the data read.
11+
This can be used for stations with low disk space (or even diskless)
12+
to borrow disk space from another computer.
13+
Unlike NFS, it is possible to put any filesystem on it, etc.
14+
15+
For more information, or to download the nbd-client and nbd-server
16+
tools, go to http://nbd.sf.net/.
17+
18+
The nbd kernel module need only be installed on the client
19+
system, as the nbd-server is completely in userspace. In fact,
20+
the nbd-server has been successfully ported to other operating
21+
systems, including Windows.
22+
23+
A) NBD parameters
24+
-----------------
25+
26+
max_part
27+
Number of partitions per device (default: 0).
28+
29+
nbds_max
30+
Number of block devices that should be initialized (default: 16).
31+

‎MAINTAINERS‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8107,7 +8107,7 @@ S: Maintained
81078107
F: drivers/net/wireless/rt2x00/
81088108

81098109
RAMDISK RAM BLOCK DEVICE DRIVER
8110-
M: Nick Piggin <npiggin@kernel.dk>
8110+
M: Jens Axboe <axboe@kernel.dk>
81118111
S: Maintained
81128112
F: Documentation/blockdev/ramdisk.txt
81138113
F: drivers/block/brd.c

‎drivers/block/drbd/drbd_main.c‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2107,13 +2107,12 @@ static int drbd_create_mempools(void)
21072107
if (drbd_md_io_page_pool == NULL)
21082108
goto Enomem;
21092109

2110-
drbd_request_mempool = mempool_create(number,
2111-
mempool_alloc_slab, mempool_free_slab, drbd_request_cache);
2110+
drbd_request_mempool = mempool_create_slab_pool(number,
2111+
drbd_request_cache);
21122112
if (drbd_request_mempool == NULL)
21132113
goto Enomem;
21142114

2115-
drbd_ee_mempool = mempool_create(number,
2116-
mempool_alloc_slab, mempool_free_slab, drbd_ee_cache);
2115+
drbd_ee_mempool = mempool_create_slab_pool(number, drbd_ee_cache);
21172116
if (drbd_ee_mempool == NULL)
21182117
goto Enomem;
21192118

‎drivers/block/drbd/drbd_req.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@ static struct drbd_request *drbd_req_new(struct drbd_device *device,
5252
{
5353
struct drbd_request *req;
5454

55-
req = mempool_alloc(drbd_request_mempool, GFP_NOIO | __GFP_ZERO);
55+
req = mempool_alloc(drbd_request_mempool, GFP_NOIO);
5656
if (!req)
5757
return NULL;
58+
memset(req, 0, sizeof(*req));
5859

5960
drbd_req_make_private_bio(req, bio_src);
6061
req->rq_state = bio_data_dir(bio_src) == WRITE ? RQ_WRITE : 0;

0 commit comments

Comments
 (0)