xfs
[Top] [All Lists]

TAKE 954580 - sparse checks for AIL locking

To: linux-xfs@xxxxxxxxxxx, sgi.bugs.xfs@xxxxxxxxxxxx
Subject: TAKE 954580 - sparse checks for AIL locking
From: nathans@xxxxxxx (Nathan Scott)
Date: Fri, 18 Aug 2006 10:12:40 +1000 (EST)
Sender: xfs-bounce@xxxxxxxxxxx
Add lock annotations to xfs_trans_update_ail and xfs_trans_delete_ail

xfs_trans_update_ail and xfs_trans_delete_ail get called with the AIL lock
held, and release it.  Add lock annotations to these two functions so that
sparse can check callers for lock pairing, and so that sparse will not
complain about these functions since they intentionally use locks in this
manner.

Signed-off-by: Josh Triplett <josh@xxxxxxxxxxxxxxx>


Date:  Fri Aug 18 10:12:23 AEST 2006
Workarea:  chook.melbourne.sgi.com:/build/nathans/xfs-linux
Inspected by:  josh@xxxxxxxxxxxxxxx

The following file(s) were checked into:
  longdrop.melbourne.sgi.com:/isms/xfs-kern/xfs-linux-melb


Modid:  xfs-linux-melb:xfs-kern:26807a
xfs_trans_priv.h - 1.28 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_trans_priv.h.diff?r1=text&tr1=1.28&r2=text&tr2=1.27&f=h
xfs_trans_ail.c - 1.79 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_trans_ail.c.diff?r1=text&tr1=1.79&r2=text&tr2=1.78&f=h
linux-2.4/xfs_linux.h - 1.162 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/linux-2.4/xfs_linux.h.diff?r1=text&tr1=1.162&r2=text&tr2=1.161&f=h
        - Add lock annotations to xfs_trans_update_ail and xfs_trans_delete_ail



<Prev in Thread] Current Thread [Next in Thread>
  • TAKE 954580 - sparse checks for AIL locking, Nathan Scott <=