On Wed, 2012-10-10 at 16:52 -0400, Christoph Hellwig wrote: > We need to assign spc_emulate_report_luns to the execute_cmd callback > and not execute it directly. > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> > > --- > drivers/target/target_core_pscsi.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > Index: lio-core/drivers/target/target_core_pscsi.c > =================================================================== > --- lio-core.orig/drivers/target/target_core_pscsi.c 2012-10-10 13:35:06.976063420 -0700 > +++ lio-core/drivers/target/target_core_pscsi.c 2012-10-10 13:35:59.124064759 -0700 > @@ -1001,7 +1001,8 @@ static int pscsi_parse_cdb(struct se_cmd > */ > switch (cdb[0]) { > case REPORT_LUNS: > - return spc_emulate_report_luns(cmd); > + cmd->execute_cmd = spc_emulate_report_luns; > + return 0; > case READ_6: > case READ_10: > case READ_12: > -- Applied to queue. Thanks Christoph ! -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html