From: Jonathan Corbet Date: Fri, 16 May 2008 19:54:46 +0000 (-0600) Subject: raw: BKL pushdown X-Git-Tag: v2.6.27-rc1~1103^2~103 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0bed680f0ca603864375ed5f9fed4296a53aa62;p=linux-2.6 raw: BKL pushdown Put explicit lock_kernel() calls into raw_open(), even though the existing locking looks adequate. Signed-off-by: Jonathan Corbet --- diff --git a/drivers/char/raw.c b/drivers/char/raw.c index bbfa0e241c..505fcbe884 100644 --- a/drivers/char/raw.c +++ b/drivers/char/raw.c @@ -19,6 +19,7 @@ #include #include #include +#include #include @@ -53,6 +54,7 @@ static int raw_open(struct inode *inode, struct file *filp) return 0; } + lock_kernel(); mutex_lock(&raw_mutex); /* @@ -79,6 +81,7 @@ static int raw_open(struct inode *inode, struct file *filp) bdev->bd_inode->i_mapping; filp->private_data = bdev; mutex_unlock(&raw_mutex); + unlock_kernel(); return 0; out2: