]> git.baikalelectronics.ru Git - kernel.git/commit
target: Remove obsolete DF_READ_ONLY usage
authorNicholas Bellinger <nab@linux-iscsi.org>
Wed, 21 Mar 2012 04:26:48 +0000 (21:26 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 14 Apr 2012 23:04:58 +0000 (16:04 -0700)
commit63ea766f6197c5875af0e0c56edec32beadf0ff2
treec877294c394ab14cbdeca4af1a3e7835d644f73b
parent321534157363a48672eb14d02bab9f757d91aa7c
target: Remove obsolete DF_READ_ONLY usage

This was used at one time as a hack by FILEIO backend registration to
allow a struct block_device that was claimed with blkdev_get (by a local
filesystem mount for example) to be exported as read-only (SCSI WP=1).

Since FILEIO backend registration will no longer attempt to obtain
exclusive access to an underlying struct block_device here, this flag is
now obsolete.

Reported-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_device.c
drivers/target/target_core_tpg.c
include/target/target_core_base.h