OSDN Git Service

scsi: target: Allow changing dbroot if there are no registered devices
authorMaurizio Lombardi <mlombard@redhat.com>
Mon, 28 Mar 2022 10:39:40 +0000 (12:39 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 7 Apr 2022 02:31:57 +0000 (22:31 -0400)
commit80890c5ea068661d6fe4a34beb362ca0f2c49c90
tree10e1dc9c1bf4651b88f6a5854d514d1c0ec77362
parent3123109284176b1532874591f7c81f3837bbdc17
scsi: target: Allow changing dbroot if there are no registered devices

The target driver prevents the users from changing the database root
directory if a target module like ib_srpt has been registered. This makes
it difficult for users to set their preferred database directory if the
module gets loaded during the system boot.

Let the users modify dbroot if there are no registered devices

Link: https://lore.kernel.org/r/20220328103940.19977-1-mlombard@redhat.com
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_configfs.c