On Sun, 2015-04-05 at 23:59 +0900, Akinobu Mita wrote: > Factor out code duplication in rd_execute_rw() into a helper function > rd_do_prot_rw(). This change is required to minimize the forthcoming > fix in rd_do_prot_rw(). > > Signed-off-by: Akinobu Mita <[email protected]> > Cc: Nicholas Bellinger <[email protected]> > Cc: Sagi Grimberg <[email protected]> > Cc: "Martin K. Petersen" <[email protected]> > Cc: Christoph Hellwig <[email protected]> > Cc: "James E.J. Bottomley" <[email protected]> > Cc: [email protected] > Cc: [email protected] > --- > * v2 > - Pass dif_verify() function pointer to helper function instead of is_write, > suggested by Sagi Grimberg. > > drivers/target/target_core_rd.c | 66 > ++++++++++++++++++++--------------------- > 1 file changed, 32 insertions(+), 34 deletions(-)
Nice patch. Applied to for-next with a bit of fuzz due to the WRITE_STRIP + READ_INSERT related changes already queued up.. Thanks Akinobu! --nab -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

