Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24427
b: refs/heads/master
c: f68110f
h: refs/heads/master
i:
  24425: 21d0630
  24423: 2dbba4d
v: v3
  • Loading branch information
Jens Axboe authored and Jens Axboe committed Mar 27, 2006
1 parent 13c1d77 commit 82b0f9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 06ff37ffb4ba8bcbda0e9d19c712c954ef7b8a0a
refs/heads/master: f68110fc28859f5d7231d5c4fb6dbe68b1394c9b
6 changes: 2 additions & 4 deletions trunk/block/ll_rw_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -906,17 +906,15 @@ init_tag_map(request_queue_t *q, struct blk_queue_tag *tags, int depth)
__FUNCTION__, depth);
}

tag_index = kmalloc(depth * sizeof(struct request *), GFP_ATOMIC);
tag_index = kzalloc(depth * sizeof(struct request *), GFP_ATOMIC);
if (!tag_index)
goto fail;

nr_ulongs = ALIGN(depth, BITS_PER_LONG) / BITS_PER_LONG;
tag_map = kmalloc(nr_ulongs * sizeof(unsigned long), GFP_ATOMIC);
tag_map = kzalloc(nr_ulongs * sizeof(unsigned long), GFP_ATOMIC);
if (!tag_map)
goto fail;

memset(tag_index, 0, depth * sizeof(struct request *));
memset(tag_map, 0, nr_ulongs * sizeof(unsigned long));
tags->real_max_depth = depth;
tags->max_depth = depth;
tags->tag_index = tag_index;
Expand Down

0 comments on commit 82b0f9c

Please sign in to comment.