search for: nr_online_nod

Displaying 3 results from an estimated 3 matches for "nr_online_nod".

Did you mean: nr_online_nodes
2020 Jul 21
0
[PATCH 05/10] block: null: use blk_is_valid_logical_block_size
...size = clamp_t(unsigned int, dev->blocksize, 512, 4096); > > + if (!blk_is_valid_logical_block_size(dev->blocksize)) > > + return -ENODEV; > > > > if (dev->queue_mode == NULL_Q_MQ && dev->use_per_node_hctx) { > > if (dev->submit_queues != nr_online_nodes) > > @@ -1865,7 +1865,7 @@ static int __init null_init(void) > > struct nullb *nullb; > > struct nullb_device *dev; > > > > - if (g_bs > PAGE_SIZE) { > > + if (!blk_is_valid_logical_block_size(g_bs)) { > > pr_warn("invalid block size\n&qu...
2020 Jul 21
17
[PATCH 00/10] RFC: move logical block size checking to the block core
This patch series aims to move the logical block size checking to the block code. This was inspired by missing check for valid logical block size in virtio-blk which causes the kernel to crash in a weird way later on when it is invalid. I added blk_is_valid_logical_block_size which returns true iff the block size is one of supported sizes. I added this check to virtio-blk, and also converted
2020 Jul 21
17
[PATCH 00/10] RFC: move logical block size checking to the block core
This patch series aims to move the logical block size checking to the block code. This was inspired by missing check for valid logical block size in virtio-blk which causes the kernel to crash in a weird way later on when it is invalid. I added blk_is_valid_logical_block_size which returns true iff the block size is one of supported sizes. I added this check to virtio-blk, and also converted