[PATCH 0/2] null_blk: make sure submit_queues > 0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

two misc patch for null_blk,

null_blk: simplify logic for use_per_node_hctx
simplify code logic, if use_per_node_hctx set submit_queues same as
nr_online_nodes.

null_blk: make sure submit_queues > 0
set submit_queues to 1 by default, and add a handle for it's value < 0,
no matter what user want, otherwise kmalloc has a negtive parameters.

weiping zhang (2):
  null_blk: simplify logic for use_per_node_hctx
  null_blk: make sure submit_queues > 0

 drivers/block/null_blk.c | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

-- 
2.9.4




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux