Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125
b: refs/heads/master
c: 4a534f9
h: refs/heads/master
i:
  123: b7dfb3a
v: v3
  • Loading branch information
Jens Axboe authored and Linus Torvalds committed Apr 16, 2005
1 parent c709968 commit e7bc6be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 9c340d80f66faaea3522812d0d8c91d6a1b48a22
refs/heads/master: 4a534f93b371e8e6e87ae302757365f0f583e06b
5 changes: 3 additions & 2 deletions trunk/drivers/block/ll_rw_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -2559,14 +2559,15 @@ EXPORT_SYMBOL(__blk_attempt_remerge);
static int __make_request(request_queue_t *q, struct bio *bio)
{
struct request *req, *freereq = NULL;
int el_ret, rw, nr_sectors, cur_nr_sectors, barrier, err;
int el_ret, rw, nr_sectors, cur_nr_sectors, barrier, err, sync;
sector_t sector;

sector = bio->bi_sector;
nr_sectors = bio_sectors(bio);
cur_nr_sectors = bio_cur_sectors(bio);

rw = bio_data_dir(bio);
sync = bio_sync(bio);

/*
* low level driver can indicate that it wants pages above a
Expand Down Expand Up @@ -2698,7 +2699,7 @@ static int __make_request(request_queue_t *q, struct bio *bio)
out:
if (freereq)
__blk_put_request(q, freereq);
if (bio_sync(bio))
if (sync)
__generic_unplug_device(q);

spin_unlock_irq(q->queue_lock);
Expand Down

0 comments on commit e7bc6be

Please sign in to comment.