projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f963d27
)
nbd: use task_pid_nr() to get current pid
author
WANG Cong
<amwang@redhat.com>
Fri, 19 Aug 2011 12:48:17 +0000
(14:48 +0200)
committer
Jens Axboe
<jaxboe@fusionio.com>
Fri, 19 Aug 2011 12:48:17 +0000
(14:48 +0200)
Signed-off-by: WANG Cong <amwang@redhat.com>
Cc: Paul Clements <Paul.Clements@steeleye.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
drivers/block/nbd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/block/nbd.c
b/drivers/block/nbd.c
index f533f3375e24751feaf4e065b920291c7abe149d..a928287177fd252297ad9b303f4c53fb901946e0 100644
(file)
--- a/
drivers/block/nbd.c
+++ b/
drivers/block/nbd.c
@@
-405,7
+405,7
@@
static int nbd_do_it(struct nbd_device *lo)
BUG_ON(lo->magic != LO_MAGIC);
- lo->pid =
current->pid
;
+ lo->pid =
task_pid_nr(current)
;
ret = sysfs_create_file(&disk_to_dev(lo->disk)->kobj, &pid_attr.attr);
if (ret) {
printk(KERN_ERR "nbd: sysfs_create_file failed!");