linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* lock context warnings
@ 2009-01-07  8:45 Christoph Hellwig
  2009-01-07  9:20 ` Alexey Zaytsev
  0 siblings, 1 reply; 3+ messages in thread
From: Christoph Hellwig @ 2009-01-07  8:45 UTC (permalink / raw)
  To: linux-sparse

Since a few month sparse keeps spewing tons of wrong lock context
warnings like:

/home/hch/work/linux-2.6/fs/xfs/quota/xfs_dquot.c:1341:24: warning:
context problem in 'xfs_qm_dqflush_done': 'xfs_trans_ail_delete'
expected different context
/home/hch/work/linux-2.6/fs/xfs/quota/xfs_dquot.c:1341:24:    context
'xa_lock': wanted >= 1, got 0
/home/hch/work/linux-2.6/fs/xfs/quota/xfs_dquot_item.c:565:22: warning:
context problem in 'xfs_qm_qoffend_logitem_committed':
'xfs_trans_ail_delete' expected different context
/home/hch/work/linux-2.6/fs/xfs/quota/xfs_dquot_item.c:565:22:
context 'xa_lock': wanted >= 1, got 0

which mean lock context annotations just don't seem to work, e.g. the
fist one is:

		/* xfs_trans_ail_delete() drops the AIL lock. */
		spin_lock(&ailp->xa_lock);
		if (qip->qli_item.li_lsn == qip->qli_flush_lsn)	
			xfs_trans_ail_delete(ailp, (xfs_log_item_t*)qip);
		else
			spin_unlock(&ailp->xa_lock);


where xfs_trans_ail_delete prototyped as:

void                    xfs_trans_ail_delete(struct xfs_ail *ailp,
                                        struct xfs_log_item *lip)
					__releases(ailp->xa_lock);


These messages are highly annoying in a kernel build, so if you can't
fix them easily, please at least remove the lock context stuff from
the default check flags.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-01-07 16:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-07  8:45 lock context warnings Christoph Hellwig
2009-01-07  9:20 ` Alexey Zaytsev
2009-01-07 16:34   ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).