On Mon, Aug 08, 2011 at 05:00:04PM +0800, Amerigo Wang wrote:This patch 1) uses task_pid_nr(current) to get the pid of current process,
2) replaces sysfs_create_file() with device_create_file(), 3) lower
the loglevel of an error message.
As you are doing 3 different things, please make this 3 different
patches (remember, one patch per logical thing being done.)
if (max_part< 0) {
- printk(KERN_CRIT "nbd: max_part must be>= 0\n");
+ printk(KERN_ERR "nbd: max_part must be>= 0\n");
Again, dev_err() please. That properly identifies exactly which device
had problems.