Re: [PATCH] eCryptfs: Privileged kthread for lower file opens

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Michael Halcrow <mhalcrow@...>
Cc: Andrew Morton <akpm@...>, LKML <linux-kernel@...>, Rusty Russell <prussell@...>, David J. Kleikamp <shaggy@...>, SERGE E. HALLYN <sergeh@...>
Date: Tuesday, May 20, 2008 - 7:16 pm

Michael Halcrow wrote:
[snip]

Hi,
2 comments on the patch.


Why not:
			if (!(req->flags & ECRYPTFS_REQ_ZOMBIE))
				dget(req->lower_dentry);
				mntget(req->lower_mnt);
				(*req->lower_file) = dentry_open(
					req->lower_dentry, req->lower_mnt,
					(O_RDWR | O_LARGEFILE));
				req->flags |= ECRYPTFS_REQ_PROCESSED;
				wake_up_process(req->requesting_task);
			}
			mutex_unlock(&req->mux);


Isn't a mutex_unlock(&req->mux) missing here?

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

Messages in current thread:
[PATCH] eCryptfs: Privileged kthread for lower file opens, Michael Halcrow, (Tue May 20, 5:46 pm)
[PATCH] eCryptfs: Clean up kthread synchronization, Michael Halcrow, (Thu May 22, 3:31 pm)
Re: [PATCH] eCryptfs: Clean up kthread synchronization, Andrew Morton, (Thu May 22, 3:41 pm)
Re: [PATCH] eCryptfs: Clean up kthread synchronization, Michael Halcrow, (Thu May 22, 5:16 pm)
Re: [PATCH] eCryptfs: Clean up kthread synchronization, Andrew Morton, (Thu May 22, 6:03 pm)
Re: [PATCH] eCryptfs: Privileged kthread for lower file opens, Andrea Righi, (Tue May 20, 7:16 pm)
Re: [PATCH] eCryptfs: Privileged kthread for lower file opens, Michael Halcrow, (Wed May 21, 11:14 am)
[PATCH] eCryptfs: Remove useless lock, Michael Halcrow, (Wed May 21, 11:39 am)