]> err.no Git - linux-2.6/commit
[CIFS] Change semaphore to mutex for cifs lock_sem
authorRoland Dreier <roland@digitalvampire.org>
Thu, 3 May 2007 04:33:45 +0000 (04:33 +0000)
committerSteve French <sfrench@us.ibm.com>
Thu, 3 May 2007 04:33:45 +0000 (04:33 +0000)
commit796e5661f6b6be1600b3ab47c61ce61cf3e7a353
treea7d4b6df0eef48d1b3a06b11b6705eb597a360b1
parent0b2365f826f40d6e966365299d4e9dcc7ef4e93f
[CIFS] Change semaphore to mutex for cifs lock_sem

Originally at http://lkml.org/lkml/2006/9/2/86

The recent change to "allow Windows blocking locks to be cancelled via a
CANCEL_LOCK call" introduced a new semaphore in struct cifsFileInfo,
lock_sem.  However, semaphores used as mutexes are deprecated these days,
and there's no reason to add a new one to the kernel.  Therefore, convert
lock_sem to a struct mutex (and also fix one indentation glitch on one of
the lines changed anyway).

Signed-off-by: Roland Dreier <roland@digitalvampire.org>
Signed-off-by: Jan Engelhardt <jengelh@gmx.de>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsglob.h
fs/cifs/dir.c
fs/cifs/file.c