]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
rbd: return -ENOMEM instead of pool id if rbd_dev_create() fails
authorIlya Dryomov <idryomov@gmail.com>
Thu, 15 Oct 2015 13:38:57 +0000 (15:38 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 2 Nov 2015 22:36:48 +0000 (23:36 +0100)
commitb51c83c241910f66b0c9a2ab17cd57db8109a98f
treec8366f8776ecc5219722e25e1a3525044bddc9a5
parent343128ce91836d4131ead74b53d83b72e93d55b2
rbd: return -ENOMEM instead of pool id if rbd_dev_create() fails

Returning pool id (i.e. >= 0) from a sysfs ->store() callback makes
userspace think it needs to retry the write.  Fix it - it's a leftover
from the times when the equivalent of rbd_dev_create() was the first
action in rbd_add().

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
drivers/block/rbd.c