Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161225
b: refs/heads/master
c: b8a9ae7
h: refs/heads/master
i:
  161223: a6a097f
v: v3
  • Loading branch information
Jens Axboe committed Sep 14, 2009
1 parent 7d7f34e commit 780c9bf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 3c5820c743479285ce2678fd3c12b1fd39fe998f
refs/heads/master: b8a9ae779f2c7049071034661e09cb7e1e82250c
7 changes: 6 additions & 1 deletion trunk/block/blk-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ queue_requests_store(struct request_queue *q, const char *page, size_t count)
{
struct request_list *rl = &q->rq;
unsigned long nr;
int ret = queue_var_store(&nr, page, count);
int ret;

if (!q->request_fn)
return -EINVAL;

ret = queue_var_store(&nr, page, count);
if (nr < BLKDEV_MIN_RQ)
nr = BLKDEV_MIN_RQ;

Expand Down

0 comments on commit 780c9bf

Please sign in to comment.