fs: bdev: fix conflicting comment from lookup_bdev
Subsystems (3)
PATCH 1/2 fs: bdev: fix conflicting comment from lookup_bdev
From: Jackie Liu <[email protected]>
We switched to directly use dev_t to get block device, lookup changed the meaning of use, now we fix this conflicting comment.
--- block/bdev.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
block/bdev.c +5 -3
@@ -962,9 +962,11 @@ EXPORT_SYMBOL(blkdev_put);* @pathname: special file representing the block device * @dev: return value of the block device's dev_t * -* Get a reference to the blockdevice at @pathname in the current -* namespace if possible and return it. Return ERR_PTR(error) -* otherwise. +* Lookup the block device's dev_t at @pathname in the current +* namespace if possible and return it by @dev. +* +* RETURNS: +* 0 if succeeded, errno otherwise. */ int lookup_bdev (const char *pathname,dev_t *dev) {
Signature · 1 line
2.25.1
PATCH 2/2 scsi: bsg: fix errno when scsi_bsg_register_queue fails
From: Jackie Liu <[email protected]>
When the value of error is printed, it will always be 0. Here, we should be print the correct error code when scsi_bsg_register_queue fails.
--- drivers/scsi/scsi_sysfs.c | 1 + 1 file changed, 1 insertion(+)
drivers/scsi/scsi_sysfs.c +1 -0
@@ -1379,6 +1379,7 @@ int scsi_sysfs_add_sdev(struct scsi_device *sdev)* We're treating error on bsg register as non-fatal, so * pretend nothing went wrong. */ + error =PTR_ERR (sdev->bsg_dev);sdev_printk (KERN_INFO , sdev,"Failed to register bsg queue, errno=%d\n" , error);
Signature · 1 line
2.25.1
Re: [PATCH 2/2] scsi: bsg: fix errno when scsi_bsg_register_queue fails
Looks good,
Looks good,
Quoted 6 lines · Jackie Liu
From: Jackie Liu <[email protected]>
We switched to directly use
dev_tto get block device, lookup changed the meaning of use, now we fix this conflicting comment.
Applied, thanks!
[1/2] fs: bdev: fix conflicting comment from lookup_bdev
commit: 057178cf518e699695a4b614a7a08c350b1fdcfd
[2/2] scsi: bsg: fix errno when scsi_bsg_register_queue fails
commit: e85c8915cf374af76efdc03a53a20fdec9d8eb5aBest regards,
Signature · 1 line
Jens Axboe
Jens Axboe
maintainerQuoted 8 lines · Jens Axboe
Quoted 6 lines · Jackie Liu
From: Jackie Liu <[email protected]>
We switched to directly use
dev_tto get block device, lookup changed the meaning of use, now we fix this conflicting comment.
Quoted 6 lines
Applied, thanks!
[1/2] fs: bdev: fix conflicting comment from
lookup_bdevcommit: 057178cf518e699695a4b614a7a08c350b1fdcfd [2/2] scsi: bsg: fix errno when scsi_bsg_register_queue fails commit: e85c8915cf374af76efdc03a53a20fdec9d8eb5a
Eh, I only applied 1/2. The other can go through the SCSI tree.
Signature · 1 line
Jens Axboe