lkml.org 
[lkml]   [2006]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: More information on scsi_cmd_cache leak... (bisect)
On Fri, 27 Jan 2006, Ariel wrote:
>
> On Fri, 27 Jan 2006, Chase Venters wrote:
>
>> After dealing with this leak for a while, I decided to do some
>> dancing around
>> with git bisect. I've landed on a possible point of regression:
>>
>> commit: a9701a30470856408d08657eb1bd7ae29a146190
>> [PATCH] md: support BIO_RW_BARRIER for md/raid1
>
> I can confirm that it only leaks with raid!
>
> I rebooted with my raid5 root, read only, and it didn't leak. As soon as I
> remount,rw it started leaking. Go back to ro and it stopped (although it
> didn't clean up the old leaks). Tried my raid1 /boot and same thing - rw
> leaks, ro doesn't. But, it only leaks on activity.
>
> I then tried a regular lvm mount (with root ro), and no leaks!
>
> What's interesting is that the mount was ro NOT the md (which can be set ro
> independently). So it looks like it only leaks if you write to the md device,
> and that's why setting the mount ro stopped the leaks.

Yeah, if the mount is ro, md won't have any reasons to write the
superblock any more, which means it won't be sending out bio's with
barriers any more.

I'm in the middle of a crash course on block IO and SATA, but hopefully
some more skillful devs will beat me to the punch :)

> -Ariel

Cheers,
Chase
-
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/

\
 
 \ /
  Last update: 2006-01-27 20:00    [W:0.117 / U:0.420 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site