login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
February
»
7
Re: [PATCH] Re: Bio device too big | kernel BUG at mm/filemap.c:537!
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Andrew Morton
Subject:
Re: [PATCH] Re: Bio device too big | kernel BUG at mm/filemap.c:537!
Date: Tuesday, February 6, 2007 - 6:15 pm
On Wed, 7 Feb 2007 10:26:56 +1100 Neil Brown <neilb@suse.de> wrote:
quoted text
> +static int bio_fits_rdev(struct bio *bi) > +{ > + request_queue_t *q = bdev_get_queue(bi->bi_bdev); > + > + if ((bi->bi_size>>9) > q->max_sectors) > + return 0; > + blk_recount_segments(q, bi); > + if (bi->bi_phys_segments > q->max_phys_segments || > + bi->bi_hw_segments > q->max_hw_segments) > + return 0; > + > + if (q->merge_bvec_fn) > + /* it's too hard to apply the merge_bvec_fn at this stage, > + * just just give up > + */ > + return 0; > + > + return 1; > +}
Isn't think going to return 0 rather a lot of the time? -
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] Re: Bio device too big | kernel BUG at mm/filemap. ...
, Neil Brown
, (Tue Feb 6, 4:26 pm)
Re: [PATCH] Re: Bio device too big | kernel BUG at mm/file ...
, Andrew Morton
, (Tue Feb 6, 6:15 pm)
Re: [PATCH] Re: Bio device too big | kernel BUG at mm/file ...
, Kai
, (Wed Feb 7, 9:26 am)
Re: [PATCH] Re: Bio device too big | kernel BUG at mm/file ...
, J.A.
, (Mon Feb 12, 1:51 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Rafael J. Wysocki
[Bug #11409] build issue #564 for v2.6.27-rc4 : undefined reference to `NS8390p_in...
Greg Kroah-Hartman
[PATCH 20/36] Driver core: Call device_pm_add() after bus_add_device() in device_a...
Andrew Morton
2.6.23-rc6-mm1
Con Kolivas
Re: [PATCH] sched: staircase deadline misc fixes
Jeremy Fitzhardinge
[PATCH 33 of 36] x86_64: ia32entry: replace privileged instructions with pvops
linux-netdev
:
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Ingo Molnar
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
Gerrit Renker
[PATCH 37/37] dccp: Debugging functions for feature negotiation
Jeff Garzik
Re: [PATCH] drivers/net: remove network drivers' last few uses of IRQF_SAMPLE_RANDOM
git
:
Junio C Hamano
Re: git-svnimport
Anuj Gakhar
Git Architecture Question
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
Gabriel
[PATCH] When a remote is added but not fetched, tell the user.
openbsd-misc
:
Jason Dixon
Re: any web management gui for pf ?
Christophe Rioux
Implementation example of snmp
Nick Holland
Re: booting openbsd on eee without cd-rom
Bryan Irvine
Re: OpenBSD 4.7 Released, May 19 2010
Marco Peereboom
Re: Singularity OS
linux-kvm
:
Harald Braumann
Windows guest freezes with black screen
Huang Ying
Re: [PATCH] Ignore SRAO MCE if another MCE is being processed
Alex Williamson
Re: [RFC PATCH 5/6] savevm: Migrate RAM based on name/offset
Alexander Graf
[PATCH 23/27] KVM: PPC: PV assembler helpers
Anthony Liguori
Re: [Qemu-devel] [PATCH] Vmchannel PCI device.
Colocation donated by:
Syndicate