Skip to contentSkip to conversation

TAKE 972755 - Fix sparse warning in xlog_recover_do_efd_trans.

DISCUSSION David Chinner 1 participant 1 message Nov 2, 2007

lore
Share & tools
lore
#0 lore raw

Fix sparse warning in xlog_recover_do_efd_trans.

Sparse trips over the locking order in xlog_recover_do_efd_trans() when xfs_trans_delete_ail() drops the ail lock. Because the unlock is conditional, we need to either annotate with a "fake unlock" or change the structure of the code so sparse thinks the function always unlocks.

Reordering the code makes it simpler, so do that.

Date:  Fri Nov  2 12:44:49 AEDT 2007
Workarea:  chook.melbourne.sgi.com:/build/dgc/isms/2.6.x-xfs
Inspected by:  [email protected], [email protected]

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

Modid: xfs-linux-melb:xfs-kern:30003a fs/xfs/xfs_log_recover.c - 1.332 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_log_recover.c.diff?r1=text&tr1=1.332&r2=text&tr2=1.331&f=h
- Fix sparse warning in xlog_recover_do_efd_trans.