OSDN Git Service

btrfs: print process name and pid that calls device scanning
authorAnand Jain <anand.jain@oracle.com>
Wed, 2 Oct 2019 10:30:48 +0000 (18:30 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 18 Nov 2019 11:46:51 +0000 (12:46 +0100)
commitaa6c0df73e3b3fc771d8d8469eb81537f4b46a45
treee3e6e159d22e984b14bf2cc1264743aec65d6ca1
parent725af92a62511aee68216438192041135bf14238
btrfs: print process name and pid that calls device scanning

Its very helpful if we had logged the device scanner process name to
debug the race condition between the systemd-udevd scan and the user
initiated device forget command.

This patch adds process name and pid to the scan message.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
[ add pid to the message ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c