]> git.baikalelectronics.ru Git - kernel.git/commit
target: Disallow changing of WRITE cache/FUA attrs after export
authorNicholas Bellinger <nab@linux-iscsi.org>
Mon, 23 Feb 2015 06:17:13 +0000 (22:17 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 20 Mar 2015 06:01:04 +0000 (23:01 -0700)
commit33c43f3afecee2758c34e0d6aca8a46be45a31c4
treec913a47dab56f393f152b9a04333eaf0d4ed4bdf
parentb7d65746744b343701de14ca433982a3229390be
target: Disallow changing of WRITE cache/FUA attrs after export

Now that incoming FUA=1 bit check is enforced for backends with FUA or
WCE disabled, go ahead and disallow the changing of related backend
attributes when active fabric exports exist.

This is required to avoid potential failures with existing initiator
LUN registrations that have been previously created with FUA=1.

Reported-by: Christoph Hellwig <hch@lst.de>
Cc: Doug Gilbert <dgilbert@interlog.com>
Cc: James Bottomley <JBottomley@Parallels.com>
Cc: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_device.c