diff options
author | Rakesh Pandit <rakesh@tuxera.com> | 2017-04-20 21:23:56 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-21 12:40:41 -0600 |
commit | 8d77bb8276062ff2d991bec71389520dd0156cc3 (patch) | |
tree | e2367341fba648d341aa0d11ca1408b944189836 /include/linux/genhd.h | |
parent | abc25a693091e61537e40dfe24e8ee5deaf08208 (diff) | |
download | linux-8d77bb8276062ff2d991bec71389520dd0156cc3.tar.gz linux-8d77bb8276062ff2d991bec71389520dd0156cc3.tar.bz2 linux-8d77bb8276062ff2d991bec71389520dd0156cc3.zip |
lightnvm: propagate pblk_init return to userspace
From userspace calling ioctl(NVM_DEV_CREATE) was returning ENOMEM for
invalid arguments even though pblk (pblk_init) was returning correctly
-EINVAL to nvm_create_tgt inside core. This patch propagates the
correct return value to userspace.
Because pblk was introduced recently this only needs to go in 4.12.
Fixes: a4bd217b4326 ("lightnvm: physical block device (pblk) target")
Signed-off-by: Rakesh Pandit <rakesh@tuxera.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/genhd.h')
0 files changed, 0 insertions, 0 deletions