Re: [PATCH] CIFS: Remove extra mutex_unlock in cifs_lock_add_if

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



trivially correct - merged

On Wed, Oct 26, 2011 at 2:41 PM, Pavel Shilovsky <piastry@xxxxxxxxxxx> wrote:
> to prevent the mutex being unlocked twice if we interrupt a blocked lock.
>
> Signed-off-by: Pavel Shilovsky <piastry@xxxxxxxxxxx>
> ---
>  fs/cifs/file.c |    1 -
>  1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/fs/cifs/file.c b/fs/cifs/file.c
> index 3ad89ec..3dd9af6 100644
> --- a/fs/cifs/file.c
> +++ b/fs/cifs/file.c
> @@ -899,7 +899,6 @@ try_again:
>                else {
>                        mutex_lock(&cinode->lock_mutex);
>                        list_del_init(&lock->blist);
> -                       mutex_unlock(&cinode->lock_mutex);
>                }
>        }
>
> --
> 1.7.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>



-- 
Thanks,

Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux