Commit 7dc429b6 authored by Linus Torvalds's avatar Linus Torvalds

Merge bk://kernel.bkbits.net/davem/net-2.5

into home.osdl.org:/home/torvalds/v2.5/linux
parents 9bba0d1c 63fb0aa4
...@@ -81,7 +81,7 @@ void __init amd_mcheck_init(struct cpuinfo_x86 *c) ...@@ -81,7 +81,7 @@ void __init amd_mcheck_init(struct cpuinfo_x86 *c)
wrmsr (MSR_IA32_MCG_CTL, 0xffffffff, 0xffffffff); wrmsr (MSR_IA32_MCG_CTL, 0xffffffff, 0xffffffff);
nr_mce_banks = l & 0xff; nr_mce_banks = l & 0xff;
for (i=0; i<nr_mce_banks; i++) { for (i=1; i<nr_mce_banks; i++) {
wrmsr (MSR_IA32_MC0_CTL+4*i, 0xffffffff, 0xffffffff); wrmsr (MSR_IA32_MC0_CTL+4*i, 0xffffffff, 0xffffffff);
wrmsr (MSR_IA32_MC0_STATUS+4*i, 0x0, 0x0); wrmsr (MSR_IA32_MC0_STATUS+4*i, 0x0, 0x0);
} }
......
...@@ -1833,7 +1833,7 @@ static int __make_request(request_queue_t *q, struct bio *bio) ...@@ -1833,7 +1833,7 @@ static int __make_request(request_queue_t *q, struct bio *bio)
barrier = test_bit(BIO_RW_BARRIER, &bio->bi_rw); barrier = test_bit(BIO_RW_BARRIER, &bio->bi_rw);
ra = bio_flagged(bio, BIO_RW_AHEAD) || current->flags & PF_READAHEAD; ra = bio->bi_rw & (1 << BIO_RW_AHEAD);
again: again:
insert_here = NULL; insert_here = NULL;
......
...@@ -506,7 +506,6 @@ static void end_buffer_async_read(struct buffer_head *bh, int uptodate) ...@@ -506,7 +506,6 @@ static void end_buffer_async_read(struct buffer_head *bh, int uptodate)
set_buffer_uptodate(bh); set_buffer_uptodate(bh);
} else { } else {
clear_buffer_uptodate(bh); clear_buffer_uptodate(bh);
if (!(current->flags & PF_READAHEAD))
buffer_io_error(bh); buffer_io_error(bh);
SetPageError(page); SetPageError(page);
} }
......
...@@ -487,7 +487,6 @@ do { if (atomic_dec_and_test(&(tsk)->usage)) __put_task_struct(tsk); } while(0) ...@@ -487,7 +487,6 @@ do { if (atomic_dec_and_test(&(tsk)->usage)) __put_task_struct(tsk); } while(0)
#define PF_SWAPOFF 0x00080000 /* I am in swapoff */ #define PF_SWAPOFF 0x00080000 /* I am in swapoff */
#define PF_LESS_THROTTLE 0x00100000 /* Throttle me less: I clean memory */ #define PF_LESS_THROTTLE 0x00100000 /* Throttle me less: I clean memory */
#define PF_SYNCWRITE 0x00200000 /* I am doing a sync write */ #define PF_SYNCWRITE 0x00200000 /* I am doing a sync write */
#define PF_READAHEAD 0x00400000 /* I am doing read-ahead */
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
extern int set_cpus_allowed(task_t *p, unsigned long new_mask); extern int set_cpus_allowed(task_t *p, unsigned long new_mask);
......
...@@ -298,15 +298,10 @@ int force_page_cache_readahead(struct address_space *mapping, struct file *filp, ...@@ -298,15 +298,10 @@ int force_page_cache_readahead(struct address_space *mapping, struct file *filp,
int do_page_cache_readahead(struct address_space *mapping, struct file *filp, int do_page_cache_readahead(struct address_space *mapping, struct file *filp,
unsigned long offset, unsigned long nr_to_read) unsigned long offset, unsigned long nr_to_read)
{ {
int ret = 0; if (!bdi_read_congested(mapping->backing_dev_info))
return __do_page_cache_readahead(mapping, filp,
if (!bdi_read_congested(mapping->backing_dev_info)) {
current->flags |= PF_READAHEAD;
ret = __do_page_cache_readahead(mapping, filp,
offset, nr_to_read); offset, nr_to_read);
current->flags &= ~PF_READAHEAD; return 0;
}
return ret;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment