[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20121115105220.GB28956@infradead.org>
Date: Thu, 15 Nov 2012 05:52:20 -0500
From: Christoph Hellwig <hch@...radead.org>
To: "Nicholas A. Bellinger" <nab@...ux-iscsi.org>
Cc: target-devel <target-devel@...r.kernel.org>,
linux-scsi <linux-scsi@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
Christoph Hellwig <hch@....de>,
"Martin K. Petersen" <martin.petersen@...cle.com>
Subject: Re: [PATCH 1/3] target/sbc: Make WRITE_SAME check differentiate
between UNMAP=[1,0]
> + if (flags[0] & 0x08)
> + cmd->se_cmd_flags |= SCF_WRITE_SAME_DISCARD;
I don't like this flag at all. We can still simply check the CDB
during ->execute_cmd and avoid this redundant flag.
Except for that bit the changes look fine, but should not be a patch
on their own. Without an actual implementation this relaxation is
actively harmful.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists