| To: | "donaldd@xxxxxxx" <donaldd@xxxxxxx> |
|---|---|
| Subject: | Re: TAKE 970240 - kill BMAPI_DEVICE |
| From: | "Bhagi rathi" <jahnu77@xxxxxxxxx> |
| Date: | Fri, 14 Sep 2007 00:53:20 +0530 |
| Cc: | xfs@xxxxxxxxxxx, sgi.bugs.xfs@xxxxxxxxxxxx |
| 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:references; bh=adpwz9bkWLnft4O8TTMR00IQbTNJ6uunPtdJnvw7Vwg=; b=nTX0bqUvFcmzm33Kwf7f1kEmGcCHXpfoRfPDZaDEL56oKwM6gjeWLeDYLLBmUJW2GEDB5b8IUQ9MNxNBtE0gpzSIOxr0nqg4Znjq7iffT2AiB4LVYYAHkQqV8lg2XcD+tMWXEqlrMVOVS960UcGDUU1OIbmNfAYJpiE9Cab2cLU= |
| 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:references; b=FsLKCM3BKqMTCduWkF2F3fCkrYW6Dnep+H9R+U+w/czV40jWQ++gwTYEAc2cQGDfd38Yc+fZnVPnF5oBP6BWzalZnPPRCRJuKemRG/MjmlVKYmWZ1DJUScvnWny6KpEEnfOAhggMaYC3pEimBkjNa+qDDtRDS6AA8vDulq931Ls= |
| In-reply-to: | <20070913043416.CCFAC2F9EBDB@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> |
| References: | <20070913043416.CCFAC2F9EBDB@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
Can one of you let me know the process of submitting changes?
Problem: Real time flag set on a regular file can race with directio which
can lead to
incorrect real time device for iomap in xfs_vm_direct_IO. This
can happen
only on the first I/O to the file as we don't set real time
flag if any of
the extents or delayed blocks present.
Fix:
xfs_setattr() {
...
if (!(mask & XFS_AT_SIZE)) {
if (need_io_lock && vap->va_xflags & XFS_XFLAG_REALTIME)
lock_flags |= XFS_IOLOCK_EXCL;
.....
}
...
}
-Thanks,
Saradhi.
On 9/13/07, donaldd@xxxxxxx <donaldd@xxxxxxx> wrote:
>
> kill BMAPI_DEVICE
>
> There is no reason to go into the iomap machinery just to get the
> right block device for an inode. Instead look at the realtime flag
> in the inode and grab the right device from the mount structure.
>
> I created a new helper, xfs_find_bdev_for_inode instead of opencoding
> it because I plan to use it in other places in the future.
>
>
> Signed-off-by: Christoph Hellwig <hch@xxxxxx >
>
> Date: Thu Sep 13 14:33:42 AEST 2007
> Workarea: linuxbuild.melbourne.sgi.com:/home/donaldd/isms/2.6.x-xfs
> Inspected by: hch@xxxxxx
>
> The following file(s) were checked into:
> longdrop.melbourne.sgi.com:/isms/linux/2.6.x-xfs-melb
>
>
> Modid: xfs-linux-melb:xfs-kern:29680a
> fs/xfs/xfs_iomap.h - 1.11 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/>
xfs_iomap.h.diff?r1=text&tr1=1.11&r2=text&tr2=1.10&f=h
>
> http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_iomap.h.diff?r1=text&tr1=1.11&r2=text&tr2=1.10&f=h
> - kill BMAPI_DEVICE
>
> fs/xfs/xfs_iomap.c - 1.55 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/>
xfs_iomap.c.diff?r1=text&tr1=1.55&r2=text&tr2=1.54&f=h
>
> http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_iomap.c.diff?r1=text&tr1=1.55&r2=text&tr2=1.54&f=h
> - kill BMAPI_DEVICE
>
> fs/xfs/linux-2.6/xfs_aops.c - 1.154 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/>
linux-2.6/xfs_aops.c.diff?r1=text&tr1=1.154&r2=text&tr2=1.153&f=h
>
> http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.6/xfs_aops.c.diff?r1=text&tr1=1.154&r2=text&tr2=1.153&f=h
> - kill BMAPI_DEVICE
>
>
>
>
[[HTML alternate version deleted]]
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: compression, Bhagi rathi |
|---|---|
| Next by Date: | Re: TAKE 970240 - kill BMAPI_DEVICE, Christoph Hellwig |
| Previous by Thread: | TAKE 970240 - kill BMAPI_DEVICE, donaldd |
| Next by Thread: | Re: TAKE 970240 - kill BMAPI_DEVICE, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |