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)
commit4b36b68ca8bab6edf7e99f859c42a91f3ad1846e
treec913a47dab56f393f152b9a04333eaf0d4ed4bdf
parentc517d838eb7d07bbe9507871fab3931deccff539
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