Re: [patch 06/14] hfsplus: remove hfsplus_permission()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Miklos Szeredi
Date: Friday, May 23, 2008 - 11:59 pm

> > Semi-concrete: link(2) locks the target's parent and the source.

Heh, you just want me to do all the hard work :)

OK, I'll go along:

  /mnt/a/x is a regular file

  ln /mnt/a/x /mnt/b/x
  rename /mnt/a/x /mnt/b/x/p & ln /mnt/b/x /mnt/a/q

Neither ->rename nor ->link is required to be defined on x.  The
rename will first lock x, then a.  The link will first lock a then x,
AFAICS.

This is probably just one of several ways to make it deadlock.

Hmm?

Miklos
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 06/14] hfsplus: remove hfsplus_permission(), Miklos Szeredi, (Wed May 21, 10:15 am)
Re: [patch 06/14] hfsplus: remove hfsplus_permission(), Roman Zippel, (Wed May 21, 1:35 pm)
Re: [patch 06/14] hfsplus: remove hfsplus_permission(), Miklos Szeredi, (Thu May 22, 12:58 am)
Re: [patch 06/14] hfsplus: remove hfsplus_permission(), Roman Zippel, (Thu May 22, 5:02 am)
Re: [patch 06/14] hfsplus: remove hfsplus_permission(), Miklos Szeredi, (Thu May 22, 5:17 am)
Re: [patch 06/14] hfsplus: remove hfsplus_permission(), Roman Zippel, (Thu May 22, 5:28 am)
Re: [patch 06/14] hfsplus: remove hfsplus_permission(), Miklos Szeredi, (Thu May 22, 5:37 am)
Re: [patch 06/14] hfsplus: remove hfsplus_permission(), Christoph Hellwig, (Fri May 23, 2:21 am)
Re: [patch 06/14] hfsplus: remove hfsplus_permission(), Roman Zippel, (Fri May 23, 8:11 am)
Re: [patch 06/14] hfsplus: remove hfsplus_permission(), Roman Zippel, (Fri May 23, 8:18 am)
Re: [patch 06/14] hfsplus: remove hfsplus_permission(), Miklos Szeredi, (Fri May 23, 8:31 am)
Re: [patch 06/14] hfsplus: remove hfsplus_permission(), Miklos Szeredi, (Fri May 23, 8:49 am)
Re: [patch 06/14] hfsplus: remove hfsplus_permission(), Roman Zippel, (Fri May 23, 9:30 am)
Re: [patch 06/14] hfsplus: remove hfsplus_permission(), Miklos Szeredi, (Fri May 23, 11:02 am)
Re: [patch 06/14] hfsplus: remove hfsplus_permission(), Roman Zippel, (Fri May 23, 11:33 am)
Re: [patch 06/14] hfsplus: remove hfsplus_permission(), Miklos Szeredi, (Fri May 23, 12:05 pm)
Re: [patch 06/14] hfsplus: remove hfsplus_permission(), Roman Zippel, (Fri May 23, 2:52 pm)
Re: [patch 06/14] hfsplus: remove hfsplus_permission(), Miklos Szeredi, (Fri May 23, 11:59 pm)