| To: | "David Chinner" <dgc@xxxxxxx> |
|---|---|
| Subject: | [xfs-masters] Re: + update-sb-s_frozen-when-freezing-read-only-mounted-device-too.patch added to -mm tree |
| From: | "Akinobu Mita" <akinobu.mita@xxxxxxxxx> |
| Date: | Fri, 5 Oct 2007 22:04:54 +0900 |
| Cc: | akpm@xxxxxxxxxxxxxxxxxxxx, mm-commits@xxxxxxxxxxxxxxx, hch@xxxxxx, xfs-masters@xxxxxxxxxxx |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Ddxj/HGl4s1aIQCvjWuLel+xDiPGV1xwHy0w9MuC/5s=; b=igvee+OgcqKp44fCpZFFfO3nrs32AAuWhJD8fzHD0JlggBZqrTwicwxTEZl+mYIzo04s3IPYHAqUxFSRP1YoPBpxZBPVahxKC+Z5lTp25JLwZUXURv2lBfjTeZ4hdBHt9o1IF7v8qk8J7KEmdb++tZQsHffxL086nJnkj+XFNgY= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qSdYR7NiCAktMAwxQE/u3j0NkABvG2Apnol2eFf+R9JRrZZG750T+8fGoEZpCCPq8bzk9gl1WL9lNs1ZLvq+X5cXBOMfoc84yvwxBqzNf6PNK9kkD951pTEnOG+2hMAGVGLyxOP1BaScU1h9f34I9VII+nOggGc18veMmrgOM1U= |
| In-reply-to: | <20071004212735.GR995458@sgi.com> |
| References: | <200710041915.l94JFdQs024659@imap1.linux-foundation.org> <20071004212735.GR995458@sgi.com> |
| Reply-to: | xfs-masters@xxxxxxxxxxx |
| Sender: | xfs-masters-bounce@xxxxxxxxxxx |
2007/10/5, David Chinner <dgc@xxxxxxx>: > > This patch updates sb->s_frozen when freeze_bdev() is called for read-only > > mounted device, too. > > IMO, this is wrong. > > By definition, a read only filesystem is the equivalent of a frozen > filesystem. i.e. freezing a rw filesystem temporarily puts it into > ro state until it is unfrozen. IOWs, freeze_bdev() should not return > with the bd_mount_sem if it's a read only filesystem because > it is a no-op and there's nothing for a thaw to do... freeze_bdev() with read-only filesystem is not so pointless. Because it can prevent from someone trying to remount read/write while freezing. (freeze_bdev() takes s->s_umount, too if there is a filesystem mounted on the device) So I prefer to keep current behavior of freeze_bdev for read-only filesystem in this patch. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [xfs-masters] Re: [PATCH] update sb->s_frozen when freezing read-only mounted device, too, Akinobu Mita |
|---|---|
| Next by Date: | [xfs-masters] [Bug 6957] Oops with fil with holes, bugme-daemon |
| Previous by Thread: | [xfs-masters] Re: + update-sb-s_frozen-when-freezing-read-only-mounted-device-too.patch added to -mm tree, David Chinner |
| Next by Thread: | [xfs-masters] Re: [PATCH] update sb->s_frozen when freezing read-only mounted device, too, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |