Files
android_kernel_samsung_msm8…/drivers
Borislav Petkov 3217df8e22 ide-disk: Fix request requeuing
commit 2c8fc86760 upstream.

Simon Kirby reported that on his RAID setup with idedisk underneath
the box OOMs after a couple of days of runtime. Running with
CONFIG_DEBUG_KMEMLEAK pointed to idedisk_prep_fn() which unconditionally
allocates an ide_cmd struct. However, ide_requeue_and_plug() can be
called more than once per request, either from the request issue or the
IRQ handler path and do blk_peek_request() ends up in idedisk_prep_fn()
repeatedly, allocating a struct ide_cmd everytime and "forgetting" the
previous pointer.

Make sure the code reuses the old allocated chunk.

Reported-and-tested-by: Simon Kirby <sim@hostway.ca>
Link: http://marc.info/?l=linux-kernel&m=131667641517919
Link: http://lkml.kernel.org/r/20110922072643.GA27232@hostway.ca
Signed-off-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-10-16 14:14:51 -07:00
..
…
…
2011-05-26 17:12:32 -07:00
…
…
…
…
2011-10-16 14:14:51 -07:00
…
…
2011-10-03 11:40:16 -07:00
…
…
…
…
…
2011-10-03 11:40:08 -07:00
…
2011-10-03 11:41:10 -07:00
…
2011-06-14 15:15:25 +09:00
…
…
2011-10-03 11:39:49 -07:00
…
…
2011-05-30 11:14:15 +09:30
…