]> git.baikalelectronics.ru Git - kernel.git/commit
target/iscsi: Fix op=disable + error handling cases in np_store_iser
authorAndy Grover <agrover@redhat.com>
Wed, 29 May 2013 19:05:59 +0000 (12:05 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 20 Jun 2013 23:47:32 +0000 (16:47 -0700)
commitaccf554d68635b0ed66905b2f996f56ab8f9f083
tree5828e17a3a7708e55b511e88affeea0f3172a9ef
parente2a5ba9e79a6ece746d2d8d772cd08d8072783ea
target/iscsi: Fix op=disable + error handling cases in np_store_iser

Writing 0 when iser was not previously enabled, so succeed but do
nothing so that user-space code doesn't need a try: catch block
when ib_isert logic is not available.

Also, return actual error from add_network_portal using PTR_ERR
during op=enable failure.

Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_configfs.c