OSDN Git Service

scsi: tcmu: use match_int for dev params
authorMike Christie <mchristi@redhat.com>
Mon, 23 Jul 2018 19:07:50 +0000 (14:07 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 31 Jul 2018 03:17:53 +0000 (23:17 -0400)
commitb60cb1f80157689d206b09affc43c2dc1cafcbc8
tree8ac521b38f03249a07d004d2c84c1060229c8375
parentc97840c84f5a4362a596a2751e9245a979377a16
scsi: tcmu: use match_int for dev params

Instead of doing strdup and kstrto* just use match_int for dev params.

It will be ok to use int instead of unsigned long in tcmu_set_dev_attrib
because that is only being used for max sectors and block size and the
supported values for them are well under the max possible integer value.

Signed-off-by: Mike Christie <mchristi@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_user.c