Re: [rfc][patchlet] initrd fix 2.3.39

From: Frank Bernard (fb@fbit.de)
Date: Mon Jan 17 2000 - 02:28:38 EST


On Mon, 17 Jan 2000, Mike Galbraith wrote:

> Well heck, that was easy enough. The answer was in thread..
> 'why invalidate_buffers() in blkdev_put()?'
That's pure understatement. I'm in the Unix and C business for twenty
years now, but I could have been testing for years to find this out.
That leads us to the conclusion, that "easy" is a relative term.

> - if (atomic_dec_and_test(&bdev->bd_openers)) {
> + if (atomic_dec_and_test(&bdev->bd_openers) && MAJOR(rdev) != RAMDISK_MAJOR) {
> /* invalidating buffers will go here */
> invalidate_buffers(rdev);

Thanks again, I will test that tonight.

Mit freundlichen Grüßen

Frank Bernard

Frank Bernard Informationstechnik GmbH
vanity +49 700 FIREWALL (0700 FIREWALL) phone : +49 69 477169
Dipl.-Inform. Frank Bernard fax : +49 69 47885616
Wehrheimerstr. 9 email : fb@fbit.de
60389 Frankfurt www : http://www.fbit.de
Germany http://www.linuxwall.de

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jan 23 2000 - 21:00:15 EST