Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 26 Mar 2002 09:26:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 26 Mar 2002 09:26:17 -0500 Received: from brooklyn-bridge.emea.veritas.com ([62.172.234.2]:44399 "EHLO einstein.homenet") by vger.kernel.org with ESMTP id ; Tue, 26 Mar 2002 09:26:15 -0500 Date: Tue, 26 Mar 2002 14:30:49 +0000 (GMT) From: Tigran Aivazian X-X-Sender: To: Subject: initrd and BLKFLSBUF Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hello, Is blockdev --flushbufs supposed to work on /dev/ram0 if it was loaded as initrd ramdisk? I unmount it and try to free the memory but hit this EBUSY in drivers/block/rd.c:rd_ioctl(): /* special: we want to release the ramdisk memory, it's not like with the other blockdevices where this ioctl only flushes away the buffer cache. */ if ((atomic_read(&inode->i_bdev->bd_openers) > 2)) return -EBUSY; The kernel is 2.4.9 but this code is almost the same in 2.4.18. So, who is this opener that keeps the inode->i_bdev->bd_openers too high? Regards, Tigran - 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/