[lkml]   [2006]   [Jul]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectHow to explain to lock validator: locking inodes in inode order
Code does this:

/* Lock two items. See locking.txt */
static inline void kb0_lock2m(struct kb0_idata *m1, struct kb0_idata *m2)
if (m1->vi.i_ino > m2->vi.i_ino)
if (m1->vi.i_ino < m2->vi.i_ino)
Not sure how to explain to the lock validator that this code can never deadlock.

Note struct kb0_idata has an element of struct inode called vi.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2006-07-18 04:27    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean